In today’s video we’re going to be learning about the infinite iterators provided by itertools, and why they are awesome!
▶ Become job-ready with Python:
https://www.indently.io
▶ Follow me on Instagram:
https://www.instagram.com/indentlyreels
00:00 Learning Python made simple
00:05 Intro
00:29 count()
02:40 cycle()
03:36 repeat()
05:23 optimisation
07:53 Outro
コメント
You can write most of these things in one line anyway, using yueld.
Indefinite? Integers do not overflow in Python, sure 🙂
Wdym with this optimization doesnt make sense in near future?
Does the package will be laggy?