Dictionaries

Sdílet
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/

Komentáře • 65

  • @ravikrishnan4521
    @ravikrishnan4521 Před 3 lety +26

    If anyone's reading this, just know that i DIDN'T BREAK MY HEAD and im proud!

  • @shaktinathkumar1045
    @shaktinathkumar1045 Před rokem +7

    Amazing teaching style!! Clear voice, confident speech and to the point ... superb!!!

  • @avenumadhav3568
    @avenumadhav3568 Před 3 lety +12

    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

  • @susmitamainde9017
    @susmitamainde9017 Před 2 lety +6

    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.😊😊

  • @MUTHU_KRISHNAN_K
    @MUTHU_KRISHNAN_K Před 2 dny +1

    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 😊❤

  • @SOUMAYGUPTA24
    @SOUMAYGUPTA24 Před 4 dny +2

    one of the finest teacher

  • @shauryayamdagni
    @shauryayamdagni Před 3 lety +19

    After watching this I am thinking there was no need for computational thinking course

    • @bhaskartrivedi3114
      @bhaskartrivedi3114 Před 3 lety +2

      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

    • @kamalkishor1379
      @kamalkishor1379 Před 2 lety +3

      CT was indeed required for learners from the non-cs backgrounds and the profs were phenomenally awesome🤩

  • @adityajha2342
    @adityajha2342 Před 4 měsíci +2

    Understood crystal clearly in 1st attempt😎 thankfully Sudarshan Sir don't let us break our head😂😂

  • @nithins6718
    @nithins6718 Před 2 lety +26

    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.

  • @sayanghosh6996
    @sayanghosh6996 Před 3 lety +13

    sherlock: i analysed the entire works of arthur conan doyle and found 'the' is the most frequently occuring word
    watson: no shit, sherlock

    • @sudarshaniyengar8549
      @sudarshaniyengar8549 Před 3 lety +7

      Humour? Or factual? Being a big fan of Doyle I never came across this word in his work?

    • @sayanghosh6996
      @sayanghosh6996 Před 3 lety +5

      @@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😂

  • @udaygawande5681
    @udaygawande5681 Před rokem +4

    22:22 maza hi aa gaya .. I like his confidence.. My code cannot be wrong :D

  • @kautuknd619
    @kautuknd619 Před 3 lety +6

    Thanks prof, this course alone is worth torturing yourself with others that come bundled ;)

  • @RISHITAHAZRA-vc4tt
    @RISHITAHAZRA-vc4tt Před 11 měsíci +1

    specially in this lecture , i understood the importance of computational thinking ... hats off to the way the bsc program is structured .

  • @kajukatli9985
    @kajukatli9985 Před rokem +6

    ['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']

  • @054_nirajkumar3
    @054_nirajkumar3 Před 3 lety +7

    Really enjoyed he session : )

  • @sudiptamukherjee8201
    @sudiptamukherjee8201 Před 3 lety +6

    amazing session it was, take away is
    'the' is the most frequently occurring word in english.

    • @sayanghosh6996
      @sayanghosh6996 Před 3 lety

      and 'e' is the most frequently occuring letter

  • @parulpurwar7716
    @parulpurwar7716 Před 2 lety +3

    i just love your way of teaching. :D

  • @kautuknd619
    @kautuknd619 Před 3 lety +5

    I really wish the maths professors subscribed to the philosophy he says at 46:01

  • @LAVANYATADAVARTI
    @LAVANYATADAVARTI Před rokem +2

    That was probably in 9th or 10th class that we have been taught the malgudi days part in our English textbook :D

  • @shobanag4114
    @shobanag4114 Před 3 lety +11

    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

    • @sudarshaniyengar8549
      @sudarshaniyengar8549 Před 3 lety

      Can you specify the time stamp where we have initialised the dictionary the non standard way?

    • @shobanag4114
      @shobanag4114 Před 3 lety +1

      @@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.

    • @worthaglimpse
      @worthaglimpse Před 3 lety

      yeah man i was searching for this comment

    • @raj_patel
      @raj_patel Před rokem

      man your commment helped me a lot. Thanks :)

    • @raj_patel
      @raj_patel Před rokem

      @@worthaglimpse yes. no one else asked this question 🤔

  • @Viswesh
    @Viswesh Před 3 lety +3

    16:18
    malgudi.index('school:')
    :D

  • @unadkatraviashok6062
    @unadkatraviashok6062 Před 2 lety +1

    How does Sir list out all possible inbuilt functions of a list by typing malgudi. in console? (time stamp 16:08)

    • @amantiwari2326
      @amantiwari2326 Před 2 lety

      No..i also want to know that

    • @unadkatraviashok6062
      @unadkatraviashok6062 Před 2 lety +2

      @@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

    • @amantiwari2326
      @amantiwari2326 Před 2 lety

      @@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 😊

  • @shailxiitm
    @shailxiitm Před 3 lety +2

    for getting time:
    %time 1 in l

  • @harshvisaini2843
    @harshvisaini2843 Před rokem

    Can some one tell where is sir coding???

  • @054_nirajkumar3
    @054_nirajkumar3 Před 3 lety +1

    थैंक्यू

  • @LAVANYATADAVARTI
    @LAVANYATADAVARTI Před rokem +1

    If we want to repeat this video thrice or 4 times, it takes a total of 3 and half hours 🙂😆

    • @vasugupta_404
      @vasugupta_404 Před rokem

      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

    • @LAVANYATADAVARTI
      @LAVANYATADAVARTI Před rokem

      @@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.

    • @VastavikVasu
      @VastavikVasu Před rokem +1

      @@LAVANYATADAVARTI oh okay. I get that now. 🙂

  • @rajshekarpatil2171
    @rajshekarpatil2171 Před 3 lety

    Sir,
    While counting the length of Malgudi, comma and blank space not taken into consideration, Is am I correct ?

    • @anurag954
      @anurag954 Před 3 lety +2

      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!

    • @rajshekarpatil2171
      @rajshekarpatil2171 Před 3 lety

      @@anurag954 Thanks your assumption of my question and Answers are Correct.

  • @smhemant9111
    @smhemant9111 Před 3 lety +1

    can anyone post malguidi text to code on our own

    • @054_nirajkumar3
      @054_nirajkumar3 Před 3 lety

      If u are not getting that text,
      Thn u can take text from any other story of which pdf is easily available on Google.

    • @sudiptamukherjee8201
      @sudiptamukherjee8201 Před 3 lety +3

      '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'

    • @sudiptamukherjee8201
      @sudiptamukherjee8201 Před 3 lety +1

      used split()

    • @shreyapal6111
      @shreyapal6111 Před 3 lety +5

      @@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'

    • @sudiptamukherjee8201
      @sudiptamukherjee8201 Před 3 lety +1

      @@shreyapal6111 :)

  • @kmishy
    @kmishy Před 3 lety +1

    Dictionary in python is very similar to array in PHP, C, JavaScript etc