Generators in Python || Python Tutorial || Learn Python Programming

Socratica โ€ข October 25, 2021
Video Thumbnail
Socratica Logo

Socratica

@socratica

About

Socratica makes high-quality educational videos on โ™พ๏ธ math ๐Ÿงช science ๐Ÿ’ป computer programming and more! We're a couple of Caltech grads who believe you deserve better videos. You'll #LearnMore with us. ๐Ÿฆ‰ Check out our COURSES on our website!

Video Description

๐™Ž๐™ฉ๐™–๐™ฎ ๐™ž๐™ฃ ๐™ฉ๐™๐™š ๐™ก๐™ค๐™ค๐™ฅ ๐™„๐™‰๐™๐™„๐™‰๐™„๐™๐™€๐™‡๐™”: https://snu.socratica.com/python Learn how to use generators in Python. We'll cover two types: Generator Functions and Generator Expressions. Generator functions use the "yield" keyword, while generator expressions look like a "tuple comprehension." Generators are a powerful and efficient tool for use when looping over large amounts of data. 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: https://snu.socratica.com/python โง“โง“โง“โง“โง“ Subscribe to Socratica + bell for notifications: http://bit.ly/SocraticaSubscribe Find our programming playlists here: Python programming: http://bit.ly/PythonSocratica SQL programming: http://bit.ly/SQL_Socratica โง“โง“โง“โง“โง“ We recommend: How to Be a Great Student ebook: https://amzn.to/2Lh3XSP Paperback: https://amzn.to/3t5jeH3 Kindle Unlimited (read free): https://amzn.to/3atr8TJ Python Cookbook, 3rd edition https://amzn.to/3goRmbG The Mythical Man Month - Essays on Software Engineering & Project Management http://amzn.to/2tYdNeP Shop Amazon Used Textbooks - Save up to 90% http://amzn.to/2pllk4B โง“โง“โง“โง“โง“ Join this channel to get access to perks: https://www.youtube.com/channel/UCW6TXMZ5Pq6yL6_k5NZ2e0Q/join Support Socratica on Patreon: https://www.patreon.com/socratica โง“โง“โง“โง“โง“ Python instructor: Ulka Simone Mohanty (@ulkam on Twitter) Written & Produced by Michael Harrison #Python #Generators #Coding

You May Also Like

Essential Bathroom Upgrade Kits

AI-recommended products based on this video

Loading...
Mr. Clean Magic Eraser Sponge, All Purpose Cleaner, Cleaning Scrubber, Wall Cleaner, Sneaker Cleaner, Kitchen, Bathroom, Shower Cleaning Supplies, Melamine Sponge, Cleaning Pads, 7 Count

Mr. Clean Magic Eraser Sponge, All Purpose Cleaner, Cleaning Scrubber, Wall Cleaner, Sneaker Cleaner, Kitchen, Bathroom, Shower Cleaning Supplies, Melamine Sponge, Cleaning Pads, 7 Count

(1)
$11.49
FREE delivery Sun, Mar 29 on your first order
300+ bought in past month
Loading...
Steam Cleaner Handheld for Home-500ml Large Capacity Steam Cleaner with 16 Accessories, Auto Continuous Steam & Safety Lock, Multi-Purpose for Kitchen Grease, Bathroom Grout (Grey/White)

Steam Cleaner Handheld for Home-500ml Large Capacity Steam Cleaner with 16 Accessories, Auto Continuous Steam & Safety Lock, Multi-Purpose for Kitchen Grease, Bathroom Grout (Grey/White)

(119)
$59.99
FREE delivery Wed, Mar 18
5K+ bought in past month
Loading...
Ultra-Slim Bidet Attachment, Posterior&Feminine Wash-(Retractable Dual Nozzles), Non-Electric Bidet Attachment for Toilet Seat, Adjustable Fresh Cold Water Pressure, Stainless Steel Inlet (White)

Ultra-Slim Bidet Attachment, Posterior&Feminine Wash-(Retractable Dual Nozzles), Non-Electric Bidet Attachment for Toilet Seat, Adjustable Fresh Cold Water Pressure, Stainless Steel Inlet (White)

(222)
$40.99
FREE delivery Sat, Apr 11
Loading...
Multi-Functional Vegetable Peeler for Kitchen,Vegetable Peeler Wooden Handle,2-in-1 Stainless Steel Fruit & Vegetable Peelers with Bottle Opener for Potato Pineapple (2PC)

Multi-Functional Vegetable Peeler for Kitchen,Vegetable Peeler Wooden Handle,2-in-1 Stainless Steel Fruit & Vegetable Peelers with Bottle Opener for Potato Pineapple (2PC)

(3)
$22.99
FREE delivery Apr 20 - 24
Loading...
Ultra-Slim Bidet Attachment, Posterior&Feminine Wash-(Retractable Dual Nozzles), Non-Electric Bidet Attachment for Toilet Seat, Adjustable Fresh Cold Water Pressure, Stainless Steel Inlet (White)

Ultra-Slim Bidet Attachment, Posterior&Feminine Wash-(Retractable Dual Nozzles), Non-Electric Bidet Attachment for Toilet Seat, Adjustable Fresh Cold Water Pressure, Stainless Steel Inlet (White)

(234)
$69.99
FREE delivery Fri, Mar 13
1K+ bought in past month
Loading...
Custom Graduation Tumbler Gifts for Him Her, Personalized Skinny Tumbler with Lid and Straws, Class of 2026 Gifts for Women Men, Graduation Cups Gift for Son Daughter, 20 oz Stainless Steel Tumbler

Custom Graduation Tumbler Gifts for Him Her, Personalized Skinny Tumbler with Lid and Straws, Class of 2026 Gifts for Women Men, Graduation Cups Gift for Son Daughter, 20 oz Stainless Steel Tumbler

(16)
$19.99
$10.99 delivery Feb 26 - Mar 10
Loading...
Face Bowl for Ice with Built-in Icetray, Collapsible Silicone Bowl for Face Ice Bath, Space Saving Wash Basin for Cold Plunge Therapy, Skin Tightening & Acne Relief, Portable Spa Tool for Home Travel

Face Bowl for Ice with Built-in Icetray, Collapsible Silicone Bowl for Face Ice Bath, Space Saving Wash Basin for Cold Plunge Therapy, Skin Tightening & Acne Relief, Portable Spa Tool for Home Travel

(0)
$10.99
$5.99 delivery Jun 25 - Jul 7
Loading...
Rotnso Anklets for Women 14K Real Gold/Silver Plated Ankle Bracelets Trendy Waterproof Boho Anklets Set Adjustable Dainty Cute Diamond Beaded Heart Non Tarnish Summer Beach Jewelry Gift for Teen Girls

Rotnso Anklets for Women 14K Real Gold/Silver Plated Ankle Bracelets Trendy Waterproof Boho Anklets Set Adjustable Dainty Cute Diamond Beaded Heart Non Tarnish Summer Beach Jewelry Gift for Teen Girls

(225)
$14.39
FREE delivery Thu, Sep 4 on your first order
100+ bought in past month
Loading...
AIEOE Unisex Children Suspender Bowtie Set Elastic Adjustable Brace Set for Wedding Daily Wear

AIEOE Unisex Children Suspender Bowtie Set Elastic Adjustable Brace Set for Wedding Daily Wear

(34)
$21.99
FREE delivery Sat, Jun 14 on your first order
Loading...
LERUJIFL Kids Bike Helmet Set, Toddler Helmet for Ages 2-8 Year Boys Girls, Adjustable Helmet Protective Gear Set with Wrist Guards, Knee and Elbow Pads, Safety Certified for Bike, Roller, Scooter

LERUJIFL Kids Bike Helmet Set, Toddler Helmet for Ages 2-8 Year Boys Girls, Adjustable Helmet Protective Gear Set with Wrist Guards, Knee and Elbow Pads, Safety Certified for Bike, Roller, Scooter

(55)
$44.99
FREE delivery Mon, Jun 16
50+ bought in past month
Loading...
Generic Dog Graduation Cap and Gown Costume Set, Puppy Graduation Hat Gown, Adjustable Knit Fabric with Gold Tassel, for Small Dogs Cats

Generic Dog Graduation Cap and Gown Costume Set, Puppy Graduation Hat Gown, Adjustable Knit Fabric with Gold Tassel, for Small Dogs Cats

(0)
$11.99
$5.99 delivery Feb 19 - 25
Loading...
Alien Power Instant Mold Stain Remover Spray Cleaner for Bathroom & Household Surfaces, No-Scrub Formula for Tiles, Grout, Mould, Mildew & Washing Machines - 2 Packets (Makes 48 Oz.)

Alien Power Instant Mold Stain Remover Spray Cleaner for Bathroom & Household Surfaces, No-Scrub Formula for Tiles, Grout, Mould, Mildew & Washing Machines - 2 Packets (Makes 48 Oz.)

(30)
$59.99
FREE delivery Sat, Apr 11
1K+ bought in past month
Loading...
Steam Cleaner Handheld for Home-500ml Large Capacity Steam Cleaner with 16 Accessories, Auto Continuous Steam & Safety Lock, Multi-Purpose for Kitchen Grease, Bathroom Grout (Grey/White)

Steam Cleaner Handheld for Home-500ml Large Capacity Steam Cleaner with 16 Accessories, Auto Continuous Steam & Safety Lock, Multi-Purpose for Kitchen Grease, Bathroom Grout (Grey/White)

(119)
$59.99
FREE delivery Wed, Mar 18
5K+ bought in past month
Loading...
ICEPURE 1 Micron 2.5" x 10" Whole House CTO Carbon Sediment Water Filter Cartridge Compatible with Dupont WFPFC8002, WFPFC9001, SCWH-5, WHCF-WHWC, WHCF-WHWC, FXWTC, CBC-10 (4 Count (Pack of 1))

ICEPURE 1 Micron 2.5" x 10" Whole House CTO Carbon Sediment Water Filter Cartridge Compatible with Dupont WFPFC8002, WFPFC9001, SCWH-5, WHCF-WHWC, WHCF-WHWC, FXWTC, CBC-10 (4 Count (Pack of 1))

(5,342)
$40.79
FREE delivery Tue, Sep 23
100+ bought in past month
Loading...
PUREPLUS 5 Micron 10" x 4.5" FXHTC Whole House Big Blue Sediment and Carbon Water Filter Replacement Cartridge for GE GXWH40L, GXWH35F, GNWH38S, Culligan RFC-BBSA, WRC25HD, RFC-BB, PP10BB-CC,3Pack

PUREPLUS 5 Micron 10" x 4.5" FXHTC Whole House Big Blue Sediment and Carbon Water Filter Replacement Cartridge for GE GXWH40L, GXWH35F, GNWH38S, Culligan RFC-BBSA, WRC25HD, RFC-BB, PP10BB-CC,3Pack

(6,753)
$40.78$38.74
FREE delivery Tue, Sep 23
300+ bought in past month
Loading...
PUREPLUS 10" x 4.5" Whole House Pleated Sediment Filter for Well Water, Replacement Cartridge for GE FXHSC, Culligan R50-BBSA, Pentek R50-BB, DuPont WFHDC3001, American Plumber W50PEHD, GXWH40L, 4Pack

PUREPLUS 10" x 4.5" Whole House Pleated Sediment Filter for Well Water, Replacement Cartridge for GE FXHSC, Culligan R50-BBSA, Pentek R50-BB, DuPont WFHDC3001, American Plumber W50PEHD, GXWH40L, 4Pack

(3,424)
$53.99
FREE delivery Tue, Sep 23
100+ bought in past month
Loading...
Waterdrop RF15-UF 0.01 Micron Replacement Filter Cartridge for 15UA/15UA-UF/15UB/15UB-UF/15UC/15UC-UF Under Sink Water Filter, Reduces Lead, Chlorine, Bad Taste & Odor, 16K Gallons High Capacity

Waterdrop RF15-UF 0.01 Micron Replacement Filter Cartridge for 15UA/15UA-UF/15UB/15UB-UF/15UC/15UC-UF Under Sink Water Filter, Reduces Lead, Chlorine, Bad Taste & Odor, 16K Gallons High Capacity

(1,161)
$53.99
FREE delivery Tue, Sep 23
200+ bought in past month
Loading...
12 Colors Nail Art Pens Set - Professional Nail Art Markers for 3D DIY Design, Quick Dry Nail Polish Pens for Painting, Dotting & Fine Liner - Precision Tip Nail Tools for Adults & Beginners

12 Colors Nail Art Pens Set - Professional Nail Art Markers for 3D DIY Design, Quick Dry Nail Polish Pens for Painting, Dotting & Fine Liner - Precision Tip Nail Tools for Adults & Beginners

(10)
$12.98
FREE delivery Sat, Jan 31 on your first order
300+ bought in past month
Loading...
Rib Prep Pro Stainless Steel Rib Membrane Remover Tool, Professional BBQ Rib Skinner and Catfish Skinner Pliers, Kitchen/Grill Gadget Kit for BBQ Rib Prep, Dishwasher Safe BBQ Accessory

Rib Prep Pro Stainless Steel Rib Membrane Remover Tool, Professional BBQ Rib Skinner and Catfish Skinner Pliers, Kitchen/Grill Gadget Kit for BBQ Rib Prep, Dishwasher Safe BBQ Accessory

(0)
$18.99
$5.99 delivery Jul 2 - 22
Loading...
Crovakeu Professional Lock Pick Set - 1-Piece Compact Locksmith Tools Kit with Practice Locks for Beginners & Pros - Portable Lockpicking Tools for Fidget, Stress Relief & Skill Training

Crovakeu Professional Lock Pick Set - 1-Piece Compact Locksmith Tools Kit with Practice Locks for Beginners & Pros - Portable Lockpicking Tools for Fidget, Stress Relief & Skill Training

(13)
$11.99
FREE delivery Jul 2 - 22
100+ bought in past month
Loading...
BBQ Rib Skinner, Rib Prep Pro, Professional Boning Tongs Boning Knife Set for Perfect Ribs, Ergonomic Handle Precise Cutting, Ultimate Grilling Gift for BBQ Enthusiasts & Grill Masters

BBQ Rib Skinner, Rib Prep Pro, Professional Boning Tongs Boning Knife Set for Perfect Ribs, Ergonomic Handle Precise Cutting, Ultimate Grilling Gift for BBQ Enthusiasts & Grill Masters

(0)
$14.99
$5.88 delivery Jul 7 - 25