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

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2024
  • 𝙎𝙩𝙖𝙮 𝙞𝙣 𝙩𝙝𝙚 𝙡𝙤𝙤𝙥 𝙄𝙉𝙁𝙄𝙉𝙄𝙏𝙀𝙇𝙔: snu.socratica.... 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....
    ⧓⧓⧓⧓⧓
    Subscribe to Socratica + bell for notifications:
    bit.ly/Socratic...
    Find our programming playlists here:
    Python programming: bit.ly/PythonSo...
    SQL programming: bit.ly/SQL_Socr...
    ⧓⧓⧓⧓⧓
    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

ความคิดเห็น • 234

  • @Socratica
    @Socratica  2 ปีที่แล้ว +5

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

  • @elboon_80
    @elboon_80 2 ปีที่แล้ว +204

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

    • @Socratica
      @Socratica  2 ปีที่แล้ว +13

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

    • @wesleydcm
      @wesleydcm 2 ปีที่แล้ว +1

      really xD

    • @pvic6959
      @pvic6959 2 ปีที่แล้ว +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 2 ปีที่แล้ว +1

      Agree.

  • @rweaver6
    @rweaver6 2 ปีที่แล้ว +38

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

  • @murphygreen8484
    @murphygreen8484 2 ปีที่แล้ว +36

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

    • @ShreyasBharadwaj
      @ShreyasBharadwaj 2 ปีที่แล้ว +3

      I swear. The dry humor puts Sahara to shame.

  • @6754bettkitty
    @6754bettkitty 2 ปีที่แล้ว +48

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

    • @arielspalter7425
      @arielspalter7425 2 ปีที่แล้ว +5

      I love her subtle sense of humor. Classy.

    • @Alex-ns1pj
      @Alex-ns1pj 2 ปีที่แล้ว +1

      That had me 💀

  • @wesleydcm
    @wesleydcm 2 ปีที่แล้ว +22

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

    • @normanmwanza8225
      @normanmwanza8225 5 หลายเดือนก่อน

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

  • @amzabdrahim3350
    @amzabdrahim3350 2 ปีที่แล้ว +14

    Ulka is awesome, these tutoriels are an unbelievable amusement.

  • @tylernardone3788
    @tylernardone3788 2 ปีที่แล้ว +53

    Excited to see Socratica back! Especially the python stuff!

  • @AmeerulIslam
    @AmeerulIslam 2 ปีที่แล้ว +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.

  • @ryancopeland1582
    @ryancopeland1582 2 ปีที่แล้ว +13

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

  • @aynalemsitotaw7566
    @aynalemsitotaw7566 2 ปีที่แล้ว +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.

  • @pvic6959
    @pvic6959 2 ปีที่แล้ว +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  2 ปีที่แล้ว +6

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

  • @savant_logics
    @savant_logics 2 ปีที่แล้ว +7

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

    • @Socratica
      @Socratica  2 ปีที่แล้ว

      AAAhhh you are too kind. 💜🦉

  • @pineapple3832
    @pineapple3832 ปีที่แล้ว +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.

  • @PoeheeHeLul
    @PoeheeHeLul 2 ปีที่แล้ว +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.

  • @soufta5872
    @soufta5872 หลายเดือนก่อน

    Let's be honest. There're a thon of python vids on TH-cam out there but the Socratica's ones are by far the best. I want to watch them over and over and over... and over again ...

  • @mrmuranga
    @mrmuranga 2 ปีที่แล้ว +1

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

  • @Skyfox94
    @Skyfox94 2 ปีที่แล้ว +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.

  • @serta5727
    @serta5727 2 ปีที่แล้ว +9

    One of my favorite Python courses

  • @KlausbergerYT
    @KlausbergerYT 2 ปีที่แล้ว +1

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

  • @troy_neilson
    @troy_neilson 2 ปีที่แล้ว +9

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

    • @Socratica
      @Socratica  2 ปีที่แล้ว

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

  • @BrianEdwardAshmore
    @BrianEdwardAshmore 2 ปีที่แล้ว +1

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

  • @pvic6959
    @pvic6959 2 ปีที่แล้ว +4

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

  • @pile333
    @pile333 2 ปีที่แล้ว +5

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

  • @FarizDarari
    @FarizDarari 2 ปีที่แล้ว +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!

  • @GoGetFletch
    @GoGetFletch 8 หลายเดือนก่อน

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

  • @rweaver6
    @rweaver6 ปีที่แล้ว

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

  • @davidraveh3075
    @davidraveh3075 2 ปีที่แล้ว +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  2 ปีที่แล้ว

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

  • @zacky7862
    @zacky7862 2 ปีที่แล้ว

    TH-cam just recommended this to me. This is a unique channel.

  • @konradd8545
    @konradd8545 2 ปีที่แล้ว +1

    The evil mastermind of CS education is back with her hilarious content! All hail the queen! 😂

  • @Shubh22
    @Shubh22 2 ปีที่แล้ว +1

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

  • @engrkhan8726
    @engrkhan8726 2 ปีที่แล้ว

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

  • @chriss3154
    @chriss3154 2 ปีที่แล้ว +2

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

  • @Socratica
    @Socratica  2 ปีที่แล้ว +27

    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: bit.ly/PythonGroup

    • @anujkondhalkar9776
      @anujkondhalkar9776 2 ปีที่แล้ว +1

      Your whole course on python is absolutly best but between the course content it has time huge gap.

  • @evilservo
    @evilservo 2 หลายเดือนก่อน

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

  • @ultravidz
    @ultravidz 2 ปีที่แล้ว +10

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

    • @DarkAion
      @DarkAion ปีที่แล้ว

      Socratica. Raising humanity, not errors

  • @scruffydogdave
    @scruffydogdave 2 ปีที่แล้ว +2

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

  • @Mr.Aswin_Das
    @Mr.Aswin_Das 2 ปีที่แล้ว +2

    I was just preparing for an interview.. and this video droped in...fresh from the box...

    • @Socratica
      @Socratica  2 ปีที่แล้ว +2

      GOOD LUCK!! We're rooting for you. 💜🦉

    • @scurvofpcp
      @scurvofpcp 2 ปีที่แล้ว

      Also, we demand an update

  • @chimchim2_
    @chimchim2_ 2 ปีที่แล้ว +1

    I never get tired of these

  • @letsjoinhands
    @letsjoinhands 2 ปีที่แล้ว

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

  • @chatebillychilima6762
    @chatebillychilima6762 2 ปีที่แล้ว

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

  • @jpcabral5016
    @jpcabral5016 2 ปีที่แล้ว +2

    Sheesss back!! 🎉

    • @Socratica
      @Socratica  2 ปีที่แล้ว +3

      We're here and we're here and we're ready to iterate

  • @wentworthmiller1890
    @wentworthmiller1890 2 ปีที่แล้ว

    3:54 "Loopus interruptus" - innuendo extraordinaire! 😂

  • @herculesrockefeller8969
    @herculesrockefeller8969 2 ปีที่แล้ว +1

    I keep watching this video over and over...

  • @puszeq11
    @puszeq11 2 ปีที่แล้ว +2

    She is back!

  • @GOTHICforLIFE1
    @GOTHICforLIFE1 2 ปีที่แล้ว

    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!

  • @DrMV1
    @DrMV1 2 ปีที่แล้ว

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

  • @shekharsrivastava6823
    @shekharsrivastava6823 2 ปีที่แล้ว

    please continue this series its so satisfying bruh

  • @felipedesousafranca
    @felipedesousafranca 2 ปีที่แล้ว +2

    Admit it, you subscribed to this channel because of Ulka!

  • @jacobtrevor3448
    @jacobtrevor3448 2 ปีที่แล้ว

    Honestly the best python tutorials on the internet

  • @nayan.j
    @nayan.j 2 ปีที่แล้ว +1

    Aye aye Socratica is back ❤️

  • @kcmichaelm
    @kcmichaelm 2 ปีที่แล้ว +2

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

  • @cuthbertmilligen
    @cuthbertmilligen 2 ปีที่แล้ว +1

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

  • @4g4m3n0n
    @4g4m3n0n 2 ปีที่แล้ว +2

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

  • @user-wz7ch8vf2p
    @user-wz7ch8vf2p 2 ปีที่แล้ว

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

  • @joelhowe
    @joelhowe 2 ปีที่แล้ว +1

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

  • @PahpriosGaming
    @PahpriosGaming 2 ปีที่แล้ว

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

  • @willk7184
    @willk7184 2 ปีที่แล้ว

    Fellow loop lover here. Thanks for the nice video.

  • @ramanat3442
    @ramanat3442 2 ปีที่แล้ว

    Happy to see you after a long time socratica.

  • @ssshukla26
    @ssshukla26 2 ปีที่แล้ว

    The Python Queen is back... The savior is back... I don't know how happy I am seeing this video series restarted....

  • @BillAugersdca
    @BillAugersdca 2 ปีที่แล้ว +2

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

    • @Socratica
      @Socratica  2 ปีที่แล้ว +1

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

  • @lexolotlgod
    @lexolotlgod ปีที่แล้ว

    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  ปีที่แล้ว

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

  • @clnguye
    @clnguye 11 หลายเดือนก่อน

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

  • @ohis2258
    @ohis2258 2 ปีที่แล้ว

    thank you, now i understand the intertools module.
    LOL ‘A FEW CLOSING REMARKS‘

  • @dima1478
    @dima1478 2 ปีที่แล้ว

    Concise and precise, what more can you ask

  • @seeker4430
    @seeker4430 2 ปีที่แล้ว +1

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

  • @cpobyrne1
    @cpobyrne1 2 ปีที่แล้ว

    your closing remarks filled me with ...ahem...two parts frustration and one part shock!!

  • @FlyingTurtleLP
    @FlyingTurtleLP 2 ปีที่แล้ว +1

    my personal highligh on socratica

  • @deadman1462
    @deadman1462 2 ปีที่แล้ว +3

    Awesome tutorials...maybe for C++ in similar lines would be super helpful :) Thanks

  • @bestelectronicmusicfromnew5189
    @bestelectronicmusicfromnew5189 2 ปีที่แล้ว

    this should go viral she's awesome, a coding poem.

  • @pablowashington1319
    @pablowashington1319 2 ปีที่แล้ว +1

    Thank you for this new video!...

  • @israelbirhane2068
    @israelbirhane2068 2 ปีที่แล้ว

    What a precise lecture is this!!

  • @akira_asahi
    @akira_asahi 2 ปีที่แล้ว

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

  • @stevenmarsh6514
    @stevenmarsh6514 ปีที่แล้ว

    Steven wright would be impressed at this level humor!

  • @serta5727
    @serta5727 2 ปีที่แล้ว +2

    Thanks 😊 at least now I understood itertools. It was simpler than I imagined 🤓

    • @Socratica
      @Socratica  2 ปีที่แล้ว +1

      Awesome! That's what we love to hear. 💜🦉

  • @SUNILKUMAR-of3hr
    @SUNILKUMAR-of3hr 2 ปีที่แล้ว +2

    I was waiting for it. Really good job

  • @omesner
    @omesner 2 ปีที่แล้ว

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

  • @Ibrahim_talib
    @Ibrahim_talib 2 ปีที่แล้ว

    Nice to see you again our teacher.

  • @LowVi
    @LowVi 2 ปีที่แล้ว

    This girl is a python master!

  • @iyanuoluwasowande8447
    @iyanuoluwasowande8447 2 ปีที่แล้ว

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

  • @jayantjolly
    @jayantjolly 2 ปีที่แล้ว +3

    Yes Socratica!! We do appreciate the "for loop"👍👍

  • @PunmasterSTP
    @PunmasterSTP 2 ปีที่แล้ว

    Loopus interruptus
    Breakin the flow.
    But iterators and iterables
    Have a lot to show.
    For,
    Sure.
    Here it is,
    Another Python tutorial.
    Socratica comin through
    With Ulka's sarcam for all of you.
    Learning something new?
    On this channel,
    That's always true!

  • @swannschilling474
    @swannschilling474 2 ปีที่แล้ว

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

  • @OPlutarch
    @OPlutarch ปีที่แล้ว

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

  • @tomerlevi2640
    @tomerlevi2640 ปีที่แล้ว

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

  • @zendaya1846
    @zendaya1846 2 ปีที่แล้ว

    "who does not love doing everything over and over and over...again" 😂😂so relatable

  • @geetikasuri9318
    @geetikasuri9318 2 ปีที่แล้ว

    Really happy you are back

  • @TheWyrdSmythe
    @TheWyrdSmythe 2 ปีที่แล้ว +1

    Using two lines to generate 'rank' and reprocessing strings to strings fills _me_ with a sensation that is two parts barely perceptible annoyance and one part covertly raised eyebrows. 😀
    rank = [str(n) for n in range(2,11)]+['J','Q','K','A']
    And, yeah, range() is annoying, but 'range(10)' does give one ten numbers. It's less weird if decades of low-level languages have made indexing by zero second nature.

  • @gekuhgeng4912
    @gekuhgeng4912 2 ปีที่แล้ว

    One more like & subscriber here😅...
    Love from India 🇮🇳
    I appreciate all your videos 🥰

  • @jackieli1724
    @jackieli1724 11 หลายเดือนก่อน

    it's an enjoyment to watch your programming video🥰🥰🥰

  • @KayYesYouTuber
    @KayYesYouTuber ปีที่แล้ว

    Simply beautiful. Thanks

  • @dineshmister1280
    @dineshmister1280 2 ปีที่แล้ว +1

    Great content 👍 and understood clearly. looking forward for next video in python.

  • @Jess-hi4zd
    @Jess-hi4zd ปีที่แล้ว

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

  • @victoriarodriguezdeleon4497
    @victoriarodriguezdeleon4497 2 ปีที่แล้ว +1

    This is really high quality stuff. Thanks for sharing

  • @mercygains
    @mercygains 2 ปีที่แล้ว

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

  • @bisratgetachew8373
    @bisratgetachew8373 2 ปีที่แล้ว

    You guys never dissapoint. Great video!

  • @kuyajj68
    @kuyajj68 2 ปีที่แล้ว

    The Queen is back!

  • @riccardoblue2781
    @riccardoblue2781 2 ปีที่แล้ว +1

    She's just brilliant...

  • @asifneyaz
    @asifneyaz 2 ปีที่แล้ว

    I loved the loopus interruptus :D !! @03:56

  • @God.Almighty
    @God.Almighty 2 ปีที่แล้ว

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