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

preview_player
Показать описание

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!

⧓⧓⧓⧓⧓
Subscribe to Socratica + bell for notifications:

Find our programming playlists here:

⧓⧓⧓⧓⧓
We recommend:
How to Be a Great Student

Python Cookbook, 3rd edition

The Mythical Man Month - Essays on Software Engineering & Project Management

Shop Amazon Used Textbooks - Save up to 90%

⧓⧓⧓⧓⧓
Join this channel to get access to perks:

Support Socratica on Patreon:

⧓⧓⧓⧓⧓
Written & Produced by Michael Harrison

#Python #Generators #Coding
Рекомендации по теме
Комментарии
Автор

I've been watching your videos for about 5 years now and I just want to let you know that I now have a great full-time job as a consultant and am invaluable to my team thanks to my ability to code, which in part is thanks to you!

satoriblue
Автор

To speed up the prime generator, don't add 2 to cache, because all numbers tested are odd and therefore compare false. In the inner loop between line 13 and 14, break if n < p*p - this will have the biggest speedup, because it will only check up to the sqrt of n. So 3 would be added without checks, 5 through 9 will only compare against the number 3. 11 through 25 only using numbers 3 and 5. Etc. vs using all of the numbers in the cache to find each new prime.

ekandrot
Автор

I've learnt so much from your videos; they are as informative as they are fun. Thanks so much!

markrobinsontraining
Автор

These videos are absolutely brilliant.I like the format, short easily digestible videos on a very specific feature of python.

andrewballr
Автор

No programing tutorial channel has such well written and engaging videos.

danielbadra
Автор

This is my first ever encounter with Socratica (I think). First, thanks to Socratica for the educational content & for the quality production. Secondly, thank you additionally for inviting a Taelon to deliver the lecture. It's been the most flabbergastingly surprising delivery. I almost ran for cover😳. "Earth: Final Conflict" (SciFi by Gene Roddenberry) introduces the Taelon (alien) race to the human race on their arrival on Earth. I thought for a second it was either Da'an or Zo'or up there. I didn't know what to do. To makes things worse, she says @6:28, "This will only end when the last star burns out or we run out of memory, whichever happens first." Where's my blanky🥴? One wouldn't dare nod-off in lecture with a teacher like her. But, seriously, grateful for the the quality content.

s-code-b
Автор

A similar Haskell tutorial would be both a challenge for Socratica and a valuable source of knowledge for those who want to learn the language.

АлексейБаскинов
Автор

I'm not a noob in programming, but i was strugle to understand yield in functions. Thanks to you all is clear now!

vadymvv
Автор

Never was so much owed by so many to so few for so short but so informative videos.

lxathu
Автор

Those python videos and their slightly different approach are always crystal clear and interesting. Thank you very much for your work!

laurentgauthier
Автор

Shit since I started python i've never understood generators like this, it's amazing that we have Socratica to be honest thank you so freaking much

youssefelamrani
Автор

that patreon addition was real smoooth!

very infomative nonetheless. did expect yield with somewhere cause i stagger there

theepicguy
Автор

I look forward to contributing to the acquisition of a human

murphygreen
Автор

I've known Socratica with the excellent abstract algebra videos, glad to see that the Python series is just as good!

MrOvipare
Автор

I had never considered generating generators, but if I generate any ideas I will iterate until I return a tractable solution. Thanks for the video. I appreciate the ones that are aimed higher than beginner level!

stuarthys
Автор

this is the best video I've watched about generators! such an important but somehow slippery concept to explain

GIULI
Автор

embedded humor in these videos is proportional to the love they cook them with 🥰

AlbertoAvilaGarcia
Автор

So happy I found your channel. Great video...I like your approach to teaching and how you break things down and provide several examples. The information provided has greatly improved my understanding!

BobP-ksmu
Автор

best artificial intelligence visualization in the world.
Thanks for the tutorial )

rrahll
Автор

I really enjoy the way these are presented. Clear and informative too.

BrianSwatton