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
Wear a Socratica Python shirt for good luck coding: shop.socratica.com/products/python-by-socratica
Even if one may know the concepts, it is still satisfying to watch Socratica's vids! Thanks!
Gosh, thank you so much, kind Socratica Friend! We're glad you're here with us! 💜🦉
really xD
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!
Agree.
As one who appreciates true geek humor, I greatly appreciate Ulka Simone's delivery of "a few closing remarks".
"because that would make sense", killed me! LoL, I remember first learning python and that tripping me up.
I swear. The dry humor puts Sahara to shame.
7:30 "remember the range function does not include the final number because that would make sense" lol
I love her subtle sense of humor. Classy.
That had me 💀
"Who does not love doing the same thing over and over and over ... and over again."
bro it reminds me of the time doc strange created an infinity loop where he kept coming back even after being killed😂
Ulka is awesome, these tutoriels are an unbelievable amusement.
Excited to see Socratica back! Especially the python stuff!
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.
"I knew that was going to happen, yet still I flinched"
BOI 😂
Glad you are back!
I really hope you will do more tutorials on python and even on machine learning or related applications of it.
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
You are amazing, THANK YOU for spreading the word! 💜🦉
... this is why I love Socratica. Their videos are the gold standard.
AAAhhh you are too kind. 💜🦉
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.
"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.
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 ...
4.47 "signalling our looping days are over"
I has missed this channel and humor....good to have you back
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.
One of my favorite Python courses
Holy smokes, the Poker-Hands calculation in < 20 lines still gives me chills.
Seriously one of the most enjoyable and enlightening Python videos I've seen. Fantastic work @Socratica
Thank you for your kind words! So very appreciated. 💜🦉
The closing remarks in this video were eye-opening, thank you!
3:36 this channel has no reason to be this funny!! I love it
"Loopus interruptus" 😄
I didn't know you can have a "loopus" even down there! 😄
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!
I love it. Socratica is so dry and witty but still an effective communicator of what can be quite complex concepts.
StopIteration exception:
"I knew that was going to happen. And yet, I flinched."
Pure, nerdy genius.
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.
We're so glad you're with us, Socratica Friend!! 💜🦉
TH-cam just recommended this to me. This is a unique channel.
The evil mastermind of CS education is back with her hilarious content! All hail the queen! 😂
Yey, my absolute favorite channel is back with Python tutorial!
The teaching methodology is really AWOSOME !!!!!!!!!!
"yet I still flinched"😮 Now thats a true Socratica plot twist😆
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
Your whole course on python is absolutly best but between the course content it has time huge gap.
Lets appreciate python for creating for loop and Socratica for making us realize its importance
She’s like a AI mother from the future who raises all of humanity
Socratica. Raising humanity, not errors
I think I'm going to have to loop back on this one.
I was just preparing for an interview.. and this video droped in...fresh from the box...
GOOD LUCK!! We're rooting for you. 💜🦉
Also, we demand an update
I never get tired of these
absolutely brilliant!! not to mention that the lady's sense of humour is awesome : D
I love the humor... Or lack thereof... very intriguing lesson.
Sheesss back!! 🎉
We're here and we're here and we're ready to iterate
3:54 "Loopus interruptus" - innuendo extraordinaire! 😂
I keep watching this video over and over...
She is back!
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!
I love the form of presentation and how you give the word „Python“ a nice melody along with its pronounciation…
please continue this series its so satisfying bruh
Admit it, you subscribed to this channel because of Ulka!
Honestly the best python tutorials on the internet
Aye aye Socratica is back ❤️
These videos are so well-done, so informative, and so inspirational. I love them so much.
Glad to see you back. You make everything follow logically. Great stuff!
Wow, this was really well done! Loved the examples given, very cool stuff folks. Glad to see more Socratica videos coming!!!
As an non-native speaker I find this tutorial very helpful since I've finally learned cards' names and suits
All your videos are so helpful and so clever - thank you!
I love this channel, because I don't just watch to learn, but also for fun which is a real nice change of pace.
Fellow loop lover here. Thanks for the nice video.
Happy to see you after a long time socratica.
The Python Queen is back... The savior is back... I don't know how happy I am seeing this video series restarted....
So glad to see you back! Thanks for the great content - I love your videos!!
We're so happy to be back making more videos!! 💜🦉
This is the first video of y'alls I've seen. Incredible, thank you so much! This complements the course I'm taking perfectly.
We're so glad you've found us! 💜🦉
The video is so clever. Entertaining and educational at the same time. The concepts are explained so clearly. Great job!
thank you, now i understand the intertools module.
LOL ‘A FEW CLOSING REMARKS‘
Concise and precise, what more can you ask
Hey!!!!!!!!
Thanks for being back.... more power to you!
your closing remarks filled me with ...ahem...two parts frustration and one part shock!!
my personal highligh on socratica
Awesome tutorials...maybe for C++ in similar lines would be super helpful :) Thanks
this should go viral she's awesome, a coding poem.
Thank you for this new video!...
What a precise lecture is this!!
Thank you for the video. I am grateful for your time and contribution. Kind regards, Akira.
Steven wright would be impressed at this level humor!
Thanks 😊 at least now I understood itertools. It was simpler than I imagined 🤓
Awesome! That's what we love to hear. 💜🦉
I was waiting for it. Really good job
Your videos are all so high quality! Thank you! And, the humor you add doesn't hurt either!
Nice to see you again our teacher.
This girl is a python master!
first time here and you're already one of my top youtube creators. You make programming interesting
Yes Socratica!! We do appreciate the "for loop"👍👍
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!
Those are just so hypnotic...cannot stop watching!!
Wow! These videos are extremely accurate for python beginners, you guys are amazing
one of the best explanations out there great attitude great production . thanks
"who does not love doing everything over and over and over...again" 😂😂so relatable
Really happy you are back
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.
One more like & subscriber here😅...
Love from India 🇮🇳
I appreciate all your videos 🥰
it's an enjoyment to watch your programming video🥰🥰🥰
Simply beautiful. Thanks
Great content 👍 and understood clearly. looking forward for next video in python.
Thank you for this, it helped me understand this better!
This is really high quality stuff. Thanks for sharing
Thank you for bringing a sense of humor and fun to STEAM education for all genders and skill/age levels :)
You guys never dissapoint. Great video!
The Queen is back!
She's just brilliant...
I loved the loopus interruptus :D !! @03:56
let me just say this video was awesome. this video was awesome.