Iterators, Iterables, and Itertools in Python || Python Tutorial || Learn Python Programming

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 26. 09. 2021
  • đ™Žđ™©đ™–đ™ź 𝙞𝙣 đ™©đ™đ™š đ™Ąđ™€đ™€đ™„ 𝙄𝙉𝙁𝙄𝙉𝙄𝙏𝙀𝙇𝙔: snu.socratica.com/python For-loops in Python do a lot of work for you. By learning HOW iteration works, you will be able to add iteration to your own classes and create custom iterable objects. Python also gives you an "itertools" module which contains a lot of convenience functions to save you time and streamline your code.
    We were able to bring you this video thanks to our generous Kickstarter backers! Find their names hidden (okay, not very hidden) in the video!
    Socratica Friends, we have a quiet little email group for Python if you'd like to receive updates (can't count on YT for notifications). Sign up here: snu.socratica.com/python
    ⧓⧓⧓⧓⧓
    Subscribe to Socratica + bell for notifications:
    bit.ly/SocraticaSubscribe
    Find our programming playlists here:
    Python programming: bit.ly/PythonSocratica
    SQL programming: bit.ly/SQL_Socratica
    ⧓⧓⧓⧓⧓
    We recommend:
    How to Be a Great Student
    ebook: amzn.to/2Lh3XSP
    Paperback: amzn.to/3t5jeH3
    Kindle Unlimited (read free): amzn.to/3atr8TJ
    Python Cookbook, 3rd edition
    amzn.to/3goRmbG
    The Mythical Man Month - Essays on Software Engineering & Project Management
    amzn.to/2tYdNeP
    Shop Amazon Used Textbooks - Save up to 90%
    amzn.to/2pllk4B
    ⧓⧓⧓⧓⧓
    Join this channel to get access to perks:
    / @socratica
    Support Socratica on Patreon:
    / socratica
    ⧓⧓⧓⧓⧓
    Python instructor: Ulka Simone Mohanty (@ulkam on Twitter)
    Written & Produced by Michael Harrison
    #Python #Iterators #Coding

Komentáƙe • 232

  • @Socratica
    @Socratica  Pƙed 2 lety +5

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

  • @elboon_80
    @elboon_80 Pƙed 2 lety +201

    Even if one may know the concepts, it is still satisfying to watch Socratica's vids! Thanks!

    • @Socratica
      @Socratica  Pƙed 2 lety +13

      Gosh, thank you so much, kind Socratica Friend! We're glad you're here with us! 💜🩉

    • @wesleydcm
      @wesleydcm Pƙed 2 lety +1

      really xD

    • @pvic6959
      @pvic6959 Pƙed 2 lety +5

      Yes this is me! Not only do I have a computer science degree, I am also a software engineer now LOL. but I LOVE these. Im soooo glad to see a new video!

    • @kamalkishor1379
      @kamalkishor1379 Pƙed 2 lety +1

      Agree.

  • @rweaver6
    @rweaver6 Pƙed 2 lety +37

    As one who appreciates true geek humor, I greatly appreciate Ulka Simone's delivery of "a few closing remarks".

  • @6754bettkitty
    @6754bettkitty Pƙed 2 lety +48

    7:30 "remember the range function does not include the final number because that would make sense" lol

  • @murphygreen8484
    @murphygreen8484 Pƙed 2 lety +34

    "because that would make sense", killed me! LoL, I remember first learning python and that tripping me up.

  • @wesleydcm
    @wesleydcm Pƙed 2 lety +22

    "Who does not love doing the same thing over and over and over ... and over again."

    • @normanmwanza8225
      @normanmwanza8225 Pƙed 3 měsĂ­ci

      bro it reminds me of the time doc strange created an infinity loop where he kept coming back even after being killed😂

  • @tylernardone3788
    @tylernardone3788 Pƙed 2 lety +53

    Excited to see Socratica back! Especially the python stuff!

  • @ryancopeland1582
    @ryancopeland1582 Pƙed 2 lety +13

    "I knew that was going to happen, yet still I flinched"
    BOI 😂

  • @amzabdrahim3350
    @amzabdrahim3350 Pƙed 2 lety +14

    Ulka is awesome, these tutoriels are an unbelievable amusement.

  • @aynalemsitotaw7566
    @aynalemsitotaw7566 Pƙed 2 lety +49

    Glad you are back!
    I really hope you will do more tutorials on python and even on machine learning or related applications of it.

  • @AmeerulIslam
    @AmeerulIslam Pƙed 2 lety +16

    words!
    04:47 These 7 lines should help you understand the mechanics of iteration.
    04:51 While these 2 lines should help you appreciate the for-loop.

  • @pvic6959
    @pvic6959 Pƙed 2 lety +31

    I'm so happy to see a new video!! These are my FAVORITE python tutorials (though I already know all these concepts haha). when I was in college a couple years ago, I would tell EVERYONE about this channel. Its so unique, so relaxing, so humorous, so educational. These tutorials stand out among the sea of tutorials on youtube

    • @Socratica
      @Socratica  Pƙed 2 lety +6

      You are amazing, THANK YOU for spreading the word! 💜🩉

  • @savant_logics
    @savant_logics Pƙed 2 lety +6

    ... this is why I love Socratica. Their videos are the gold standard.

    • @Socratica
      @Socratica  Pƙed 2 lety

      AAAhhh you are too kind. 💜🩉

  • @mrmuranga
    @mrmuranga Pƙed 2 lety +1

    4.47 "signalling our looping days are over"
    I has missed this channel and humor....good to have you back

  • @pineapple3832
    @pineapple3832 Pƙed rokem +5

    When I first started watching Socratica's videos with Ulka I thought the "robot persona" was cheesy, but after several videos, I'm realizing she's actually quite funny without being overly so, and her delivery fits the material thematically. Also her tone and cadence lends itself to being clear and easy to understand, which is actually the most important thing. So I now consider these some of the best Python videos on youtube.

  • @serta5727
    @serta5727 Pƙed 2 lety +9

    One of my favorite Python courses

  • @KlausbergerYT
    @KlausbergerYT Pƙed 2 lety +1

    Holy smokes, the Poker-Hands calculation in < 20 lines still gives me chills.

  • @Skyfox94
    @Skyfox94 Pƙed 2 lety +3

    Even as somebody who has written many a script in Python I can still learn from these videos. That's why I originally subbed to Socratica.

  • @PoeheeHeLul
    @PoeheeHeLul Pƙed 2 lety +5

    "You need to know your ABC's". So dry and funny (Even more funny if you know beforehand what ABC's are).
    These video's are made with so much love and attention for details.

  • @GOTHICforLIFE1
    @GOTHICforLIFE1 Pƙed 2 lety

    These are so well made, and additionally cover stuff you don't really think about. Once you can handle a for loop you think you got things covered, forgetting that there are many flexible things you can do with iterations outside the simple for loop. Very cool!

  • @cuthbertmilligen
    @cuthbertmilligen Pƙed 2 lety +1

    Glad to see you back. You make everything follow logically. Great stuff!

  • @BrianEdwardAshmore
    @BrianEdwardAshmore Pƙed 2 lety +1

    The closing remarks in this video were eye-opening, thank you!

  • @4g4m3n0n
    @4g4m3n0n Pƙed 2 lety +2

    Wow, this was really well done! Loved the examples given, very cool stuff folks. Glad to see more Socratica videos coming!!!

  • @PahpriosGaming
    @PahpriosGaming Pƙed 2 lety

    I love this channel, because I don't just watch to learn, but also for fun which is a real nice change of pace.

  • @kcmichaelm
    @kcmichaelm Pƙed 2 lety +2

    These videos are so well-done, so informative, and so inspirational. I love them so much.

  • @GoGetFletch
    @GoGetFletch Pƙed 6 měsĂ­ci

    I love it. Socratica is so dry and witty but still an effective communicator of what can be quite complex concepts.

  • @DrMV1
    @DrMV1 Pƙed 2 lety

    I love the form of presentation and how you give the word „Python“ a nice melody along with its pronounciation


  • @Shubh22
    @Shubh22 Pƙed 2 lety +1

    Yey, my absolute favorite channel is back with Python tutorial!

  • @omesner
    @omesner Pƙed 2 lety

    Your videos are all so high quality! Thank you! And, the humor you add doesn't hurt either!

  • @engrkhan8726
    @engrkhan8726 Pƙed 2 lety

    The teaching methodology is really AWOSOME !!!!!!!!!!

  • @pvic6959
    @pvic6959 Pƙed 2 lety +4

    3:36 this channel has no reason to be this funny!! I love it

  • @troy_neilson
    @troy_neilson Pƙed 2 lety +9

    Seriously one of the most enjoyable and enlightening Python videos I've seen. Fantastic work @Socratica

    • @Socratica
      @Socratica  Pƙed 2 lety

      Thank you for your kind words! So very appreciated. 💜🩉

  • @bisratgetachew8373
    @bisratgetachew8373 Pƙed 2 lety

    You guys never dissapoint. Great video!

  • @chimchim2_
    @chimchim2_ Pƙed 2 lety +1

    I never get tired of these

  • @swannschilling474
    @swannschilling474 Pƙed 2 lety

    Those are just so hypnotic...cannot stop watching!!

  • @jacobtrevor3448
    @jacobtrevor3448 Pƙed 2 lety

    Honestly the best python tutorials on the internet

  • @zacky7862
    @zacky7862 Pƙed 2 lety

    CZcams just recommended this to me. This is a unique channel.

  • @davidraveh3075
    @davidraveh3075 Pƙed 2 lety +1

    As I learn from and enjoy the Socratica teaching, I felt I should express my thanks by joining and paying that little to thank and keep it running. Thank you.

    • @Socratica
      @Socratica  Pƙed 2 lety

      We're so glad you're with us, Socratica Friend!! 💜🩉

  • @BillAugersdca
    @BillAugersdca Pƙed 2 lety +2

    So glad to see you back! Thanks for the great content - I love your videos!!

    • @Socratica
      @Socratica  Pƙed 2 lety +1

      We're so happy to be back making more videos!! 💜🩉

  • @seeker4430
    @seeker4430 Pƙed 2 lety +1

    Hey!!!!!!!!
    Thanks for being back.... more power to you!

  • @ramanat3442
    @ramanat3442 Pƙed 2 lety

    Happy to see you after a long time socratica.

  • @SUNILKUMAR-of3hr
    @SUNILKUMAR-of3hr Pƙed 2 lety +2

    I was waiting for it. Really good job

  • @israelbirhane2068
    @israelbirhane2068 Pƙed 2 lety

    What a precise lecture is this!!

  • @evilservo
    @evilservo Pƙed 29 dny

    Lets appreciate python for creating for loop and Socratica for making us realize its importance

  • @clnguye
    @clnguye Pƙed 9 měsĂ­ci

    The video is so clever. Entertaining and educational at the same time. The concepts are explained so clearly. Great job!

  • @rweaver6
    @rweaver6 Pƙed rokem

    StopIteration exception:
    "I knew that was going to happen. And yet, I flinched."
    Pure, nerdy genius.

  • @lexolotlgod
    @lexolotlgod Pƙed rokem

    This is the first video of y'alls I've seen. Incredible, thank you so much! This complements the course I'm taking perfectly.

    • @Socratica
      @Socratica  Pƙed rokem

      We're so glad you've found us! 💜🩉

  • @ultravidz
    @ultravidz Pƙed 2 lety +10

    She’s like a AI mother from the future who raises all of humanity

    • @DarkAion
      @DarkAion Pƙed rokem

      Socratica. Raising humanity, not errors

  • @chatebillychilima6762
    @chatebillychilima6762 Pƙed 2 lety

    I love the humor... Or lack thereof... very intriguing lesson.

  • @joelhowe
    @joelhowe Pƙed 2 lety +1

    All your videos are so helpful and so clever - thank you!

  • @kapitankidlattv9613
    @kapitankidlattv9613 Pƙed 2 lety

    This is golden! Kudos to the team!

  • @Ibrahim_talib
    @Ibrahim_talib Pƙed 2 lety

    Nice to see you again our teacher.

  • @vikranttyagiRN
    @vikranttyagiRN Pƙed 2 lety

    I absolutely love this channel ❀

  • @geetikasuri9318
    @geetikasuri9318 Pƙed 2 lety

    Really happy you are back

  • @shekharsrivastava6823
    @shekharsrivastava6823 Pƙed 2 lety

    please continue this series its so satisfying bruh

  • @OPlutarch
    @OPlutarch Pƙed 11 měsĂ­ci

    Wow! These videos are extremely accurate for python beginners, you guys are amazing

  • @iyanuoluwasowande8447
    @iyanuoluwasowande8447 Pƙed 2 lety

    first time here and you're already one of my top youtube creators. You make programming interesting

  • @pile333
    @pile333 Pƙed 2 lety +5

    "Loopus interruptus" 😄
    I didn't know you can have a "loopus" even down there! 😄

  • @KayYesYouTuber
    @KayYesYouTuber Pƙed rokem

    Simply beautiful. Thanks

  • @neens6377
    @neens6377 Pƙed 2 lety

    Thank God now our next generation teacher is back, hope you cover maximum concepts this time a request it is.

  • @RH-nk7eo
    @RH-nk7eo Pƙed 2 lety

    This was masterful thank you!

  • @herculesrockefeller8969
    @herculesrockefeller8969 Pƙed 2 lety +1

    I keep watching this video over and over...

  • @akira_asahi
    @akira_asahi Pƙed 2 lety

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

  • @letsjoinhands
    @letsjoinhands Pƙed 2 lety

    absolutely brilliant!! not to mention that the lady's sense of humour is awesome : D

  • @FarizDarari
    @FarizDarari Pƙed 2 lety +5

    I am a lecturer of a Python course at my univ in Indonesia, and I recommend (+ share links to) this channel to my students :)
    Thank you for quality learning videos!

  • @dima1478
    @dima1478 Pƙed 2 lety

    Concise and precise, what more can you ask

  • @mercygains
    @mercygains Pƙed 2 lety

    Thank you for bringing a sense of humor and fun to STEAM education for all genders and skill/age levels :)

  • @itsmerhlgupta
    @itsmerhlgupta Pƙed 2 lety

    As always...best and top class. Thanks Socratica for such an awesome content. More power to you 👍🙌

  • @pablowashington1319
    @pablowashington1319 Pƙed 2 lety +1

    Thank you for this new video!...

  • @chriss3154
    @chriss3154 Pƙed 2 lety +2

    "yet I still flinched"😼 Now thats a true Socratica plot twist😆

  • @puszeq11
    @puszeq11 Pƙed 2 lety +2

    She is back!

  • @FlyingTurtleLP
    @FlyingTurtleLP Pƙed 2 lety +1

    my personal highligh on socratica

  • @victoriarodriguezdeleon4497
    @victoriarodriguezdeleon4497 Pƙed 2 lety +1

    This is really high quality stuff. Thanks for sharing

  • @Jess-hi4zd
    @Jess-hi4zd Pƙed rokem

    Thank you for this, it helped me understand this better!

  • @mhelmers
    @mhelmers Pƙed 2 lety

    At last! Love it!

  • @nachoBikeLife
    @nachoBikeLife Pƙed 8 měsĂ­ci

    Very helpful, thanks! đŸ™đŸ»

  • @thebuggser2752
    @thebuggser2752 Pƙed 2 lety

    What a great video!! Worth watching even if you know the concepts.

  • @nayan.j
    @nayan.j Pƙed 2 lety +1

    Aye aye Socratica is back ❀

  • @tomerlevi2640
    @tomerlevi2640 Pƙed rokem

    one of the best explanations out there great attitude great production . thanks

  • @muralidhar40
    @muralidhar40 Pƙed 6 měsĂ­ci

    ACTUALLY helpful. ty.

  • @scruffydogdave
    @scruffydogdave Pƙed 2 lety +2

    I think I'm going to have to loop back on this one.

  • @yuli3873
    @yuli3873 Pƙed 2 lety

    Love these videos!

  • @user-wn3eq6tq7o
    @user-wn3eq6tq7o Pƙed 9 měsĂ­ci

    This is gold.

  • @riccardoblue2781
    @riccardoblue2781 Pƙed 2 lety +1

    She's just brilliant...

  • @willk7184
    @willk7184 Pƙed 2 lety

    Fellow loop lover here. Thanks for the nice video.

  • @iamtapasdas
    @iamtapasdas Pƙed 2 lety

    I appreciate the content.. Also amazed how carefully the presented

  • @BitCloud047
    @BitCloud047 Pƙed 2 lety

    Your videos are so freaking good....I love them...

  • @user-wz7ch8vf2p
    @user-wz7ch8vf2p Pƙed 2 lety

    As an non-native speaker I find this tutorial very helpful since I've finally learned cards' names and suits

  • @lilarreola27
    @lilarreola27 Pƙed 2 lety

    Welcome back Legend! 🙏

  • @carlosmunoz5178
    @carlosmunoz5178 Pƙed 2 lety

    thank you your videos have helped me a lot

  • @matthewgarcia2431
    @matthewgarcia2431 Pƙed 2 lety

    thanks for the new video!

  • @mohammedsaifuddin7040
    @mohammedsaifuddin7040 Pƙed 2 lety

    Nicely presented. Thank you. 🙏.

  • @kychemclass5850
    @kychemclass5850 Pƙed 2 lety

    Love these videos and the hunour. Excellent. TQ TQ TQ! :D

  • @RichardGreco
    @RichardGreco Pƙed 2 lety

    Very good video! Please keep them coming.

  • @edmundobrown5604
    @edmundobrown5604 Pƙed 2 lety

    congratulations ! Amazing content in all the videos !

  • @palficsaba1710
    @palficsaba1710 Pƙed 2 lety

    Thank You! You are amazing as usual!

    • @Socratica
      @Socratica  Pƙed 2 lety

      Thank you for watching today!! 💜🩉

  • @JorgeEscobarMX
    @JorgeEscobarMX Pƙed 2 lety

    Oh my! I didn't knew this was an ongoing series. I'll catch up now.

  • @God.Almighty
    @God.Almighty Pƙed 2 lety

    let me just say this video was awesome. this video was awesome.

  • @SuperlativeCG
    @SuperlativeCG Pƙed 2 lety

    Plain and simple.

  • @zachary_burrows
    @zachary_burrows Pƙed 3 měsĂ­ci

    Immediate sub. Great vid.