Premium Only Content

Python Generators Explained
Welcome back to another YouTube video! In this video, I will be talking about generators in Python. Generators are similar to iterators but a more advanced concept in the Python language. However, they are not too complicated and anyone should be able to follow along.
💻 Thanks to HiCounselor for sponsoring this video! Apply to their next cohort to land your dream job in tech here: https://hicounselor.com/ HiCounsoler not only provides great learning resources but also has great interview prep material!
⭐️ Timestamps ⭐️
00:00 | Overview
01:43 | Generators vs Iterators
02:40 | Iterators Explained
08:33 | next()
13:58 | iter()
15:24 | Creating Legacy Iterators
19:22 | Creating Generators
23:15 | Generators Use Case
26:58 | Generator Comprehensions
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
💰 Courses & Merch 💰
💻 The Fundamentals of Programming w/ Python: https://tech-with-tim.teachable.com/p/the-fundamentals-of-programming-with-python
👕 Merchandise: https://teespring.com/stores/tech-with-tim-merch-shop
🔗 Social Medias 🔗
📸 Instagram: https://www.instagram.com/tech_with_tim
📱 Twitter: https://twitter.com/TechWithTimm
⭐ Discord: https://discord.gg/twt
📝 LinkedIn: https://www.linkedin.com/in/tim-ruscica-82631b179/
🌎 Website: https://techwithtim.net
📂 GitHub: https://github.com/techwithtim
🔊 Podcast: https://anchor.fm/tech-with-tim
🎬 My YouTube Gear 🎬
🎥 Main Camera (EOS Canon 90D): https://amzn.to/3cY23y9
🎥 Secondary Camera (Panasonic Lumix G7): https://amzn.to/3fl2iEV
📹 Main Lens (EFS 24mm f/2.8): https://amzn.to/2Yuol5r
🕹 Tripod: https://amzn.to/3hpSprv
🎤 Main Microphone (Rode NT1): https://amzn.to/2HrZxXc
🎤 Secondary Microphone (Synco Wireless Lapel System): https://amzn.to/3e07Swl
🎤 Third Microphone (Rode NTG4+): https://amzn.to/3oi0v8Z
☀️ Lights: https://amzn.to/2ApeiXr
⌨ Keyboard (Daskeyboard 4Q): https://amzn.to/2YpN5vm
🖱 Mouse (Logitech MX Master): https://amzn.to/2HsmRDN
📸 Webcam (Logitech 1080p Pro): https://amzn.to/2B2IXcQ
📢 Speaker (Beats Pill): https://amzn.to/2XYc5ef
🎧 Headphones (Bose Quiet Comfort 35): https://amzn.to/2MWbl3e
🌞 Lamp (BenQ E-reading Lamp): https://amzn.to/3e0UCr8
🌞 Secondary Lamp (BenQ Screenbar Plus): https://amzn.to/30Dtafi
💻 Monitor (BenQ EX2780Q): https://amzn.to/2HsmUPZ
💻 Monitor (LG Ultrawide 34WN750): https://amzn.to/3dSD7tS
🎙 Mic Boom Arm (Rode PSA 1): https://amzn.to/30EZw9m
🎚 Audio Interface (Focusrite Scarlet 4i4): https://amzn.to/2TjXsih
💸 Donations 💸
💵 One-Time Donations: https://www.paypal.com/donate?hosted_button_id=CU9FV329ADNT8
💰 Patreon: https://www.patreon.com/techwithtim
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
⭐️ Tags ⭐️
- Tech With Tim
- Generators
- Generators Explained
- Iterators
- Python
- HiCounselor
⭐️ Hashtags ⭐️
#TechWithTim #Generators1
-
7:54
Tech With Tim
1 year ago $0.01 earnedThese 7 Coding Skills Give You an UNFAIR Advantage
279 -
1:30:16
2 MIKES LIVE
7 hours ago2 MIKES LIVE #203 Lone Survivor with Donna Axelson and Adam Flynn!
50.2K -
1:18:49
Kim Iversen
9 hours agoEXPOSED: Inside Tim Pool’s Secret Meeting with Netanyahu | Trump’s Tariff Gamble: Boost for America or Death Blow?
166K294 -
5:28:29
Biscotti-B23
9 hours ago $1.92 earned🔴 LIVE GETSUGA GAUNTLET 🔥 TRAINING FOR RANKED ⚔ BLEACH REBIRTH OF SOULS
47.6K1 -
1:19:00
Sarah Westall
5 hours agoMassive Spiral Structures Found Under Giza Pyramids, Advanced Ancient Societies w/ Jay Anderson
99.2K21 -
54:32
LFA TV
13 hours agoStrongman Stare Down | TRUMPET DAILY 4.9.25 7PM
81K11 -
1:35:31
Redacted News
9 hours agoBioweapons over America? U.S. Geo-engineering caught raining mysterious objects over U.S. | Redacted
208K292 -
1:19:20
vivafrei
10 hours agoCanadian Government & Courts Denying Military Jab Injury Compensation? Trump Pronouns "No Thanks"?
134K40 -
54:20
Candace Show Podcast
9 hours agoHarvey Weinstein Calls Out Justin Baldoni | #MAHA Gaslighting Begins | Candace Ep 174
133K118 -
22:26
Exploring With Nug
12 hours ago $1.53 earnedI Found a Heavy Bag Underwater Scuba Diving! What's Inside?
34.6K2