Python Dictionaries || Python Tutorial || Learn Python Programming

Поділитися
Вставка
  • Опубліковано 31 січ 2025

КОМЕНТАРІ • 292

  • @Socratica
    @Socratica  3 роки тому +9

    Wear a Socratica Python shirt for good luck coding: shop.socratica.com/products/python-by-socratica

  • @OPTIONALWATCH
    @OPTIONALWATCH 6 років тому +336

    I almost feel guilty these tutorials are free. They are high quality, very easy to understand and with a touch of humor.

    • @dvs6121
      @dvs6121 6 років тому +8

      Me too. Let's fix this. *I challenge you* to donate to Socratica via Patreon. I'll match your contribution $ for $ up to the $20 monthly level (that's at most $5 per week)

    • @atharvparlikar8765
      @atharvparlikar8765 4 роки тому +2

      well you can always give patreon donations

    • @toke7342
      @toke7342 2 роки тому +1

      They are indeed extremely high quality, and fun to watch.
      And welcome to the internet

    • @inzanity490
      @inzanity490 2 роки тому +1

      The beauty of the internet. So many people willing to share very useful information for free.

  • @Socratica
    @Socratica  5 років тому +73

    It's official! The Socratica Python Kickstarter was a success! Thank you to all of our supporters. Because of you, many more Python videos coming soon!! 💜🦉

    • @adonisedmundtafadzwamuzata4855
      @adonisedmundtafadzwamuzata4855 5 років тому +2

      Wow...I am so excited, you have wonderful teaching skills

    • @endorfineater
      @endorfineater 5 років тому

      kudos!!

    • @HIDlarissaTERRY
      @HIDlarissaTERRY 5 років тому +1

      Socratica , I like iT! Thank you for illuminating teaching experience!

    • @HIDlarissaTERRY
      @HIDlarissaTERRY 5 років тому

      Thank you for your comments guys and great value of feedback!

    • @Omar-ic3wc
      @Omar-ic3wc 5 років тому

      Thank you for helping us!! Big hug from Italy

  • @bogdan13grbea
    @bogdan13grbea 8 років тому +172

    Brilliant. Wow. This is the next level of tutorials. Very comprehensive, very clean, very str8 to the point. Congratulations

  • @fr.richardhill2900
    @fr.richardhill2900 8 років тому +45

    I won't forget that a bracket on each side of you makes you a dictionary! Several great memory aids in this lesson. Starting to get a little handle on the data set types. Thanks.

    • @Socratica
      @Socratica  8 років тому +12

      That's awesome! So glad to hear it. :)

    • @macshild
      @macshild 5 років тому +2

      Sets too.

    • @michaelgill8689
      @michaelgill8689 2 роки тому

      it is important to call things what they are, particularly because [] are lists and {} are dictionaries.
      [ ] are Brackets (think of the hard K sound)
      { } are Braces (curvy like an S) also, like dental braces (you wouldn't want brackets in your mouth :))
      ( ) are parenthesis, used for tuples

  • @Peaceiscoming669
    @Peaceiscoming669 8 років тому +58

    omg!!!! what i didnt understand from a whole month of python classes ,...i understood all in just this video!!!
    Socratica you guys made a really good video which is really crisp, to the point, and really helpful thank u so much for making my life a bit easy in programming

  • @smokeythefish
    @smokeythefish 7 років тому +8

    Just starting to learn Python and stumbled on your channel. In the first few seconds I was put off by the robo-schtick and almost closed out to find another channel, but I'm glad I didn't. This breakdown was very comprehensive, explained small differences in the syntax and highlighted when the syntax would change slightly, and had a logical progression to the explanation. It was exactly what I was looking for for the dataset I'm trying to process.
    I see your python tutorials are three years old and this comment probably doesn't matter much, but thanks all the same!

    • @Socratica
      @Socratica  6 років тому +6

      We're very glad to hear from you! We're still making Python videos, so we're glad you've found us! :D

    • @mandymartinez8694
      @mandymartinez8694 5 років тому +1

      I loved the robo-schtick!

  • @robertplautz9722
    @robertplautz9722 6 років тому +3

    never coded, never learned a language. this is brilliant, you are Socratica!

  • @crafable
    @crafable 7 років тому +8

    Clean, short, straight to the point, clear, easy, fun and contextualized videos. Just amazing! Thank you!

  • @jessielucky5530
    @jessielucky5530 5 років тому +91

    “I am a dictionary", lol, the end scared me.

  • @Taiyo783
    @Taiyo783 4 роки тому +2

    You are a LIFESAVER! I've been struggling with my programming class for the longest time now, and I had to learn how to make a dictionary. I found your video, and not only do I have a better understanding to creating a dictionary in python, but I feel as though my programming class will come across as easier. Thank you 😌!

  • @Firnila
    @Firnila 4 роки тому +5

    I have been trying to learn Python and there are a lot of tutorials around, but these are by far the best quality for beginning. They are lucid and funny.

  • @thegenxgamerguy6562
    @thegenxgamerguy6562 5 років тому +8

    Why can't all tutorials like yours?
    Most tutorials out there are too bloated with ego stuff, with too many things which don't belong there. YOUR tutorials, on the other hand, are concise, precise, straight to the point.

    • @John_3563
      @John_3563 4 роки тому

      Chris Kamper the fact that this tutorial provides a bit more on how it can be used rather than solely focusing on the commands like where just going through a documentation.

  • @anontough6907
    @anontough6907 2 роки тому

    This is, by far, the best educational videos I have ever see...
    Right on points, Quality over Quantity, And Free Like Almost Everything in Python.
    I've done several tutorial ( Paid and Free ), and trust me, listen to her, she's giving everything you need to know.
    Thank.

  • @harshdahiya1076
    @harshdahiya1076 11 днів тому

    this is one of the very few youtube channels that I instantly fall in love with.

  • @affable.pebble
    @affable.pebble 10 місяців тому

    Not only is this super comprehensive and concise but also so well-made, I love it! ❤

  • @glenbenton2175
    @glenbenton2175 4 роки тому +7

    She still hypnotizes me after all these years.

  • @syedrhaque765
    @syedrhaque765 3 роки тому +1

    Truly Excellent. Combined with Corey Schafers videos this series is probably more effective than anything else. Accessing Data 2:56, iteration with for loop 5:0.

  • @chungwingyan8851
    @chungwingyan8851 2 роки тому

    I paid 300 USD for python class and i have absolutely no ideas what’s going on. Thank you Socratica for making all the high-quality contents so easily understandable and free!!!!!!

    • @Socratica
      @Socratica  2 роки тому +1

      This is pretty great to hear. TELL YOUR FRIENDS! 💜🦉

  • @dvs6121
    @dvs6121 6 років тому +3

    0:19 "The value of this lesson would be 17.8" hahaha...on a scale of 1 to 10, *all* your videos are at least 17.8. I laugh and learn so much with every one of them. This is exceptional teaching!

  • @王玮-f6f
    @王玮-f6f 6 років тому +8

    I love the presentation style of this video! It's so cool!

  • @ML.ArtificialIntelligence
    @ML.ArtificialIntelligence 3 роки тому +1

    my mind just blown after watching this video how smoothly you teach dictionary amazing

  • @aviadomeisi4894
    @aviadomeisi4894 6 років тому +2

    One of the best channels for learning how to learn

  • @ribusgan
    @ribusgan 4 роки тому

    These video lessons are info rich and packed in short time. Goes a little fast for the brain of a 53 year old. My question to other learners - "How do you all go through these videos that your learning is maximum? What are your processes of learning through these?"

  • @HodophileWanderlust
    @HodophileWanderlust 6 років тому +5

    great way to express
    Sound😍😍
    way to teach😍😍
    presentation 😍😍
    teaching content 😍😍

  • @Socratica
    @Socratica  5 років тому +19

    Welcome to Socratica! You can see our entire Python Playlist here: bit.ly/PythonSocratica
    Subscribe to see all our new videos! bit.ly/SocraticaSubscribe

  • @janedawg09
    @janedawg09 4 роки тому +1

    I guess I prefer your videos better than our online class.

  • @agaptinfernandez7412
    @agaptinfernandez7412 5 років тому +2

    Magnificent presentation, astounding clarity, extremely authoritative, depth of content is impressive, whiff of humour is appreciated vey much. congratulations and thank you very much.

  • @abujihadsalahudin
    @abujihadsalahudin 2 роки тому

    Your videos are the best I have seen on python on UA-cam and I have watched a lot of videos

  • @Roboticdock
    @Roboticdock 6 років тому +4

    Well, I'm speechless! That's more than A+ ...

  • @kgurumurthybhat
    @kgurumurthybhat 7 років тому +16

    at 1:09, the location is Devils Tower National monument :)

    • @Socratica
      @Socratica  7 років тому +3

      You got it!! :)

    • @jeromes624
      @jeromes624 6 років тому +1

      "Recognizing its unique characteristics, the United States Congress designated the area a U.S. forest reserve in 1892 and in 1906 Devils Tower became the nation's first National Monument. The 1977 movie Close Encounters of the Third Kind used the formation as a plot element and as the location of its climactic scenes." wiki.

    • @ersekrem
      @ersekrem 6 років тому +1

      Good catch! :D

    • @michaeldamolsen
      @michaeldamolsen 4 роки тому +1

      @@jeromes624 Furthermore, the example message is the notes from that same movie.

  • @SoggyWheat79
    @SoggyWheat79 11 місяців тому

    I really like you. I love how you talk like Jarvis in Ironman and your intelligence backs it up. You are so very helpful and smart ❤

  • @iftekhar77
    @iftekhar77 2 роки тому

    she needs more recognition, these are superb n fun !

  • @janedawg09
    @janedawg09 4 роки тому

    I really like your video style. It really fits the subject and it motivates me to watch until I understand the topic.

  • @valdrinkuchi435
    @valdrinkuchi435 7 років тому +34

    Is the location she provided referring to Devil's Tower?

    • @Socratica
      @Socratica  7 років тому +26

      We are thrilled that you got this reference! :)

    • @AmineEssahfi
      @AmineEssahfi 7 років тому

      HOLY SHIT LOL

    • @abela6925
      @abela6925 7 років тому +1

      I need to know, por favor. :)

    • @zesegatto
      @zesegatto 7 років тому

      yes... I look for it too.
      www.google.com.br/maps/place/44°35'25.9"N+104°42'56.0"W/@44.5893038,-104.7176183,756m/

    • @kaboomatar
      @kaboomatar 5 років тому

      i just looked it up too, i lol'd and wtf'd

  • @swadhikarc7858
    @swadhikarc7858 7 років тому +2

    First of all I appreciate all the efforts to create this video. Thanks for all the knowledge you shared

  • @zinxderobo
    @zinxderobo 3 роки тому

    I'm so hooked on your information. Thank you, so very much. You have highlighted so many things that make the logic more logical for me.

  • @mudassarnadeem4084
    @mudassarnadeem4084 2 роки тому

    Your Method Of Explanation is so amazing. If any body see your video his fingers are moving to write some thing.
    IF you want to go haven Please Continue python series ,if not THEN.................................................. ( I THINK YOU UNDRSTAND )

  • @FallinPython
    @FallinPython 4 роки тому +2

    The video is great! Just want to say that you cannot use all kind of data types for keys. Only immutable data types.

  • @mahimsd7645
    @mahimsd7645 7 років тому +1

    I'm impressed by ur explanations..... nice crisp and to the point

  • @adilsher
    @adilsher 4 роки тому +1

    Not just hat I've learned about the topic but also about devil's tower and the music notes. Cool stuff

  • @jsmit7730
    @jsmit7730 5 років тому +1

    Really solid info in 6 min. Well done. Subbed

  • @ShivamSingh-kn3gz
    @ShivamSingh-kn3gz 4 роки тому +2

    I had been finding many issues in python, you lectures made me to come a very far across of what i was before .
    I am from India...
    Ma'am could you please possibly make a lectures regarding split function. I am getting some problems while using them in dictionary where the values are more than one item for a single key when user makes his input dynamically ..

  • @bru513
    @bru513 3 роки тому

    lol I love your sense of humor. Thanks for the explanation!

  • @Socratica
    @Socratica  5 років тому +2

    Support what you love! Socratica has a Kickstarter to make more Python: bit.ly/PythonKickstarter

  • @pacedelacruz4913
    @pacedelacruz4913 5 років тому +5

    Hahahaha!! You're a dictionary? We love you, Ulka! 🌷😄💖

    • @april8tost
      @april8tost 5 років тому +1

      How do you know her name? o.0

  • @Socratica
    @Socratica  5 років тому +1

    We're halfway there. We still need your help! Support Socratica Python Kickstarter: bit.ly/PythonKickstarter

  • @lukehandfx6404
    @lukehandfx6404 7 років тому

    i love u guys this vid is realeased to help begginers since 2016 and its 2018 n ur still helping this kid trying to get thru their college life

  • @qneal78710
    @qneal78710 2 роки тому

    great job. I use your videos along with my books to accomplish learning python

  • @ytingyun
    @ytingyun 4 роки тому +1

    Wow, thanks! This is nicely paced, perfect for my ADHD brian.

  • @parthchawla8385
    @parthchawla8385 4 роки тому

    This video gets a A+ from me. I personally like the idea for presentation and it has a well explanation. I dont beilieve I can view this video for free... (and unexpectedly it taught me how to use try and except lol)

  • @itpugil
    @itpugil 2 роки тому

    I was looking up on how to substitute if-else statements with using dictionaries. I saw a shorts video here on youtube where he used the get function in manipulating dictionaries , I had an aha moment when you explained it.

  • @khalidhassani6173
    @khalidhassani6173 5 років тому +2

    thank you for the professionnal work you did in this tuto

  • @dryhottone
    @dryhottone 4 місяці тому

    Great video. Love the CE3 references 👽

  • @Rick_Foley
    @Rick_Foley 6 років тому +5

    I love the hidden CE3K references.

  • @amerging8687
    @amerging8687 2 роки тому +1

    Thanks to you
    Please continue this Amazing work
    😍😍😍😍🥰🥰🥰🥰🥰

  • @matheussilva9098
    @matheussilva9098 5 років тому +3

    It's like a game tutorial, awesome

  • @Xentrick
    @Xentrick 7 років тому +4

    Interesting, informative and stimulating. Thank you for such a well put together tutorial.

    • @Socratica
      @Socratica  7 років тому +2

      Thank you so much, Xentric! We're glad you're watching! :)

    • @Xentrick
      @Xentrick 7 років тому +1

      Can't wait to learn more. I took a C.I.S. python class last semester and have been looking for projects to do over the summer and this is my new home base.

    • @Socratica
      @Socratica  7 років тому +1

      Awesome!! Please keep us posted on your progress!

  • @bsykesbeats
    @bsykesbeats 2 роки тому

    @5:14 just to eliminate any confusion, as of 2018 (Python v3.7), dicts are ordered.

  • @joshua43214
    @joshua43214 4 роки тому

    Dictionaries might be the most powerful tool in Python, maybe more so than list comprehension.
    This video does not even begin to detail how powerful and useful they are.
    One thing you didn't mention - the dictionary keys are objects of their own, this can be an issue when generating them automatically.
    A useful trick is to generate a list of basenames from your data set, then loop over the list and generate dictionaries:
    my_dict[basename+"_key"] = some_data
    Now you can pass the basename around to various functions and not have its object class raise errors.

  • @akira_asahi
    @akira_asahi 2 роки тому

    Thank you for the video. I am gratuful for your time and contribution. Kind regards, Akira.

  • @tonealexandrucatalin6889
    @tonealexandrucatalin6889 Рік тому

    I really love explain style ❤

  • @nitinchaudhary7686
    @nitinchaudhary7686 6 років тому

    i like your method to explain everything. Please could you make vedio on , How to make calculator in Python? ( this one help me a lot , you are the only one , i can understand easily . ) I need tutors like you.

  • @kiranshah177
    @kiranshah177 6 років тому +1

    Your python tutorials are awesome !!!
    It will be better if you will share the slides for this playlist ....Please ...
    Thanks in advance

  • @answeredbyMalik
    @answeredbyMalik 5 років тому +2

    I love this channel!

  • @amerging8687
    @amerging8687 2 роки тому +1

    You are amazing
    Really thank you
    🥰😍😍🥰❤️🥰😍😍🥰

  • @jakeambrose4294
    @jakeambrose4294 7 років тому +2

    idk but i love the little jokes. they crack me up

  • @ioannis-johnmizithras
    @ioannis-johnmizithras 4 роки тому

    How is this lesson so good and understandable but makes me want to laugh in tears at the same time?! Oh I'm staying, big time!!

  • @barissakarya42
    @barissakarya42 4 місяці тому

    I’m learning like a watching exciting movie with her!

  • @raja007q
    @raja007q 4 роки тому

    I just repeat watching these episodes to put a smile on my face

  • @desync0134
    @desync0134 6 років тому +1

    @5:09 why does the output contain spaces when the values and keys are not followed or preceded by spaces, and the added equals sign is not either?

  • @jamesgrime5328
    @jamesgrime5328 5 років тому +1

    That Friend Face post, sure would make for a close encounter!

  • @martinekjanko6547
    @martinekjanko6547 5 років тому +2

    i learned more from youtube python videos than in my whole class this quarter. the class is bull and my professor thinks going over assignments from 3 weeks ago, and literally just reading answer code, not exaplaining ANYTHING actually does anything. both the class, prof, and univ is a joke

  • @kayombo1001
    @kayombo1001 4 роки тому

    Hi Socratica, I hoppy you are fine, I discovery your chananel anda I like it too much, congratulation you know how to explain. Iam from Angola, Iam doing my Python course at Udemy, but should like to attend some courses with you, staff like robot, artificial inteligence and son on. Sorry if I didnt explain well because in Angola we speak Portuguese. Looking forward to hear from you.

  • @Jwalavimi
    @Jwalavimi 6 років тому +1

    I can easily understand than thank you so much mam👍

  • @yash1152
    @yash1152 Рік тому

    4:08 4:19 the directory and help function in python
    wow, awesome

  • @DhimanLab
    @DhimanLab 4 роки тому

    This is what I was exactly looking for ..Thanks

  • @__shaikmalikbasha__
    @__shaikmalikbasha__ 6 років тому +1

    gd evnd the way of ur explanation is awesome.

  • @Henry-n7n8
    @Henry-n7n8 2 роки тому

    great tut, very easy to understand,,, thanks.

  • @PunmasterSTP
    @PunmasterSTP 3 роки тому

    Phenomenal tutorial as always!

  • @BCTAHbKA
    @BCTAHbKA 3 роки тому

    This is the best video ever

  • @8015908
    @8015908 5 років тому +12

    I feel scared but I've also learned about dictionaries.

  • @higiniofuentes2551
    @higiniofuentes2551 7 місяців тому

    Thank you for this very useful video!

  • @stevehageman6785
    @stevehageman6785 2 роки тому

    HA, ha, ha, ha.... I had to look at the "ff post" location! Good one!

  • @gaberuth2500
    @gaberuth2500 3 роки тому

    incredibly helpful as always!

  • @yekhtiari
    @yekhtiari 5 років тому +1

    Nice dictionary!

  • @elysiuminsights
    @elysiuminsights 3 роки тому

    look at me, I am Addiction'ary!!
    You sure are Socratica !!

  • @christopher9145
    @christopher9145 3 роки тому

    Wow, great content. Thank you.

  • @codingxllama
    @codingxllama 6 років тому

    Great video , just a quick question. Suppose , you want to have 2 dictionaries (Users of the Fun Face social media) , and they both have the SAME key of "Language" and value of "English" , and your task is to create a dictionary called EnglishLang , that only takes users who speak english , then how would you do that ? How would you create a new dictionary that stores equal values from previous dictionaries ?

    • @jugginator4390
      @jugginator4390 6 років тому

      You could always use a for loop and build a new dictionary from there. Reply back if you need help but you can append it to a new list if value=English and then construct it into a dict

  • @iraqbaghdad
    @iraqbaghdad 5 років тому

    you are a Wonderful teacher

  • @kamranzamanni6826
    @kamranzamanni6826 3 роки тому

    Thank you again for another great video!

  • @jamescullins2709
    @jamescullins2709 5 років тому

    Awesome instructor!

  • @foctionss
    @foctionss 8 років тому +5

    thx guys its very informative ;)

  • @juliotampan
    @juliotampan 4 роки тому +2

    The location (44.590533, -104.715556) it's the Devils Tower National Monument, is this a hidden message for having a close encounter of the 3rd kind?

  • @philippao8078
    @philippao8078 2 роки тому

    Clear and top, thanks.

  • @mateo98100
    @mateo98100 3 роки тому

    post.pop('user_id') if you wanna mess around..however it lists the UI at the end of the post

  • @begrackled
    @begrackled 7 років тому +3

    Nice lat/lon coordinates.

  • @SMFahim-vo5zn
    @SMFahim-vo5zn 6 років тому +1

    try:
    print(post2['location'])
    except KeyError:
    print('The post does not contain location.')
    Why did you use the "KeyEorror"? What does it do? It looks like the output is as the same without this.

    • @martinekjanko6547
      @martinekjanko6547 5 років тому

      it IS the same. she was showing two ways to avoid an error showing up when producing output. using an if-else statement or try/except, both work, and we get the same output

    • @xekis
      @xekis 5 років тому

      It's harder to see since she's running in the shell, but in normal execution an unhandled exception would lead to program termination.
      With the try/except the code, if there was more, will continue to execute after printing the error.

  • @ROMSradio
    @ROMSradio 2 роки тому

    This was an awesome Sci-Fi movie... and also helped me with my error message upon get( ) command XD

  • @Sugurous
    @Sugurous 3 роки тому

    This is better than mine bootcamp