Dictionaries
Vložit
- čas přidán 5. 06. 2021
- Dictionaries
"Week: 6
Topic: Dictionaries" IIT Madras welcomes you to the world’s first BSc Degree program in Programming and Data Science. This program was designed for students and working professionals from various educational backgrounds and different age groups to give them an opportunity to study from IIT Madras without having to write the JEE. Through our online programs, we help our learners to get access to a world-class curriculum in Data Science and Programming.
To know more about our Programs, please visit :
BSc Degree in Programming and Data Science - onlinedegree.iitm.ac.in/
Diploma in Programming / Data Science - diploma.iitm.ac.in/
If anyone's reading this, just know that i DIDN'T BREAK MY HEAD and im proud!
Even till I also atleast in python
Amazing teaching style!! Clear voice, confident speech and to the point ... superb!!!
idea behind dictionary: 2:00 2:37 3:50
use of dictionary: 6:26
example: 10:00 13:28 18:24 20:55
imp note: 17:55
max: 26:15
dictionary illustration: 40:55
I was very scared 🙉🙉thinking that my first programming language would be too difficult but I like your lectures so much that I want to watch it again and again, you express difficult things very simply. I am having great fun learning my first programming language with you, thank you very much sir.😊😊
Thank you very much sir for this wonderful session . Even electronic systems students like me (who haven't done computational thinking) are able to understand this like a charm.
45 mins went just like that 😊❤
one of the finest teacher
After watching this I am thinking there was no need for computational thinking course
Yes, I have written in all feedbacks of T1 that in CT kindly use python syntax...
Maybe, it was to remove fear of computer languages :p
CT was indeed required for learners from the non-cs backgrounds and the profs were phenomenally awesome🤩
Understood crystal clearly in 1st attempt😎 thankfully Sudarshan Sir don't let us break our head😂😂
Why don't you try and teach us Math II sir?? I think that with your style of teaching and keeping the students engaged you'll see that most people will end up passing Math II. Stats II however, I think that Prof. Andrew is doing the best he can, although some stuff goes over my head, I am kept engaged with the lecture. That's not the case in Math II. I often see myself just lost somewhere and realize that I'm watching the video and the rewind back to the point he lost me. And this vicious cycle continues making even 15 min long videos last for more than an hour, in some cases me just giving up and saying I'll catch up next week.
Can't agree with you more.
agree with you bro
sherlock: i analysed the entire works of arthur conan doyle and found 'the' is the most frequently occuring word
watson: no shit, sherlock
Humour? Or factual? Being a big fan of Doyle I never came across this word in his work?
@@sudarshaniyengar8549 humour 😂. The phrase 'no shit, sherlock' is used when someone states something obvious. As if from the pov of watson, to sherlock. Like we found 'the' is the most used word in natural English after using the entire texts of Sherlock Holmes😂
22:22 maza hi aa gaya .. I like his confidence.. My code cannot be wrong :D
Thanks prof, this course alone is worth torturing yourself with others that come bundled ;)
specially in this lecture , i understood the importance of computational thinking ... hats off to the way the bsc program is structured .
['it', 'was', 'Monday', 'morning', 'Swaminathan', 'was', 'reluctant', 'to', 'open', 'his', 'eyes', 'he', 'considerd', 'Monday', 'specially', 'unpleasant', 'in', 'the', 'calendar', 'After', 'the', 'delecious', 'freedom', 'of', 'saturday', 'and', 'sunday', 'it', 'was', 'difficult', 'to', 'get', 'into', 'the', 'Monday', 'mood', 'of', 'work', 'and', 'discipline', 'He', 'shuddered', 'at', 'the', 'very', 'thought', 'of', 'school', 'that', 'dismal', 'yellow', 'building', 'the', 'fire', 'eyed', 'Vednayagam', 'his', 'class', 'teacher', 'and', 'the', 'headmaster', 'with', 'his', 'thin', 'long', 'cane']
Doing god's work, thank you
Really enjoyed he session : )
amazing session it was, take away is
'the' is the most frequently occurring word in english.
and 'e' is the most frequently occuring letter
i just love your way of teaching. :D
I really wish the maths professors subscribed to the philosophy he says at 46:01
That was probably in 9th or 10th class that we have been taught the malgudi days part in our English textbook :D
I was wondering how the code worked for Sherlock word list, bcoz while initialising dictionary, prof has not used set (unique list) derived from original word list, pretty much similar to Malgudi. I was expecting some sort error, as keys will be duplicated while initialising the dictionary. However, it looks like dictionary acts smartly by replacing the new entries if it hapens to be a dup. We can save some memory by skipping creation of set to de-dup keys.
Post to help people like me, who got bit confused around 22:02
Can you specify the time stamp where we have initialised the dictionary the non standard way?
@@sudarshaniyengar8549 @ 19:01 while initialising dictionary for Malgudi, set is used. In case of Sherlock @ 36:44, list (which will obviously have duplicate words) is used for initialising. However python's dictionary is capable of handling this and doesn't throw an error. So, depending upon the context it might be ok to use list to initialise.
yeah man i was searching for this comment
man your commment helped me a lot. Thanks :)
@@worthaglimpse yes. no one else asked this question 🤔
16:18
malgudi.index('school:')
:D
How does Sir list out all possible inbuilt functions of a list by typing malgudi. in console? (time stamp 16:08)
No..i also want to know that
@@amantiwari2326 In Spyder, go to:
Preferences > IPython console > Display > Completion Type → change this to “Plain”.
Now, when you are in the iPython console in Spyder and you hit TAB for auto-complete suggestions, it will display the whole list of method suggestions in the console. Got to know this from one of fellow student @IITM
@@unadkatraviashok6062 i was using linux terminal so this tab thing was working absolutely fine..and in vs code auto suggestions worked just by using normal extension. 👍🏻
Thanks for reply though 😊
for getting time:
%time 1 in l
Can some one tell where is sir coding???
spyder
थैंक्यू
If we want to repeat this video thrice or 4 times, it takes a total of 3 and half hours 🙂😆
Yes but then what's unusual about it? Since the lecture is long, accordingly it will rake more time
Or do you wanna say anything else that I am not understanding
@@vasugupta_404 It just wanted to say that everyone does not have that much time to repeat the video for 2 or 3 times. Nothing much.
@@LAVANYATADAVARTI oh okay. I get that now. 🙂
Sir,
While counting the length of Malgudi, comma and blank space not taken into consideration, Is am I correct ?
In this example, the variable malgudi is not a string, just a list of words that the prof. has created. So, yes, they are not counted. len(malgudi) returns the number of elements in the list malgudi, the commas and spaces displayed are only there because of the default way a list is printed. Like for example if we write a = [1, 2, 3 ], there are only 3 elements in the list but printing it as print(a) prints it out the way we created it (i.e [1, 2, 3]). Hope i did not misunderstand your question!
@@anurag954 Thanks your assumption of my question and Answers are Correct.
can anyone post malguidi text to code on our own
If u are not getting that text,
Thn u can take text from any other story of which pdf is easily available on Google.
'It', 'was', 'Monday', 'morning.', 'Swaminathan', 'was', 'reluctant', 'to', 'open', 'his', 'eyes.', 'he', 'considered', 'Monday', 'specially', 'unpleasant', 'in', 'the', 'calendar.', 'After', 'the', 'delicious', 'freedom', 'of', 'Saturday', 'and', 'Sunday,', 'it', 'was', 'difficult', 'to', 'get', 'into', 'the', 'Monday', 'mood', 'of', 'work', 'and', 'discipline.', 'He', 'shuddered', 'at', 'the', 'very', 'thought', 'of', 'school:', 'the', 'dismal', 'yellow', 'building;', 'the', 'fire-eyed', 'Vedanayagam,', 'his', 'class', 'teacher,', 'and', 'headmaster', 'with', 'his', 'thin', 'long', 'cane'
used split()
@@sudiptamukherjee8201 Thanks! I found this very useful.
If anyone needs it, here is a version without punctuations.
'It', 'was', 'Monday', 'morning', 'Swaminathan', 'was', 'reluctant', 'to', 'open', 'his', 'eyes', 'he', 'considered', 'Monday', 'specially', 'unpleasant', 'in', 'the', 'calendar', 'After', 'the', 'delicious', 'freedom', 'of', 'Saturday', 'and', 'Sunday', 'it', 'was', 'difficult', 'to', 'get', 'into', 'the', 'Monday', 'mood', 'of', 'work', 'and', 'discipline', 'He', 'shuddered', 'at', 'the', 'very', 'thought', 'of', 'school', 'the', 'dismal', 'yellow', 'building', 'the', 'fire-eyed', 'Vedanayagam', 'his', 'class', 'teacher', 'and', 'headmaster', 'with', 'his', 'thin', 'long', 'cane'
@@shreyapal6111 :)
Dictionary in python is very similar to array in PHP, C, JavaScript etc
no no, quite different :-). You will eventually decode this.
@@sudarshaniyengar8549 OK sir
No, In Javascript it is Object