Python's Magical Itertools Module

preview_player
Показать описание
Have you been missing something magical in your life lately? Well in this video I am going to be introducing you to a magical module called Itertools! This module is magical because it provides built in functionality, specifically functions for creating integrators for efficient looping! I hope you enjoy the video and find it magical!

📄 Resources 📄

⭐️ Timestamps ⭐️
00:00 | Itertools Module
00:50 | What is An Iterators?
05:31 | Infinite Iterators
08:33 | Terminating Iterators
12:16 | Combinatoric Iterators

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️

⭐️ Tags ⭐️
-Tech With Tim
-Itertools Module
-Magical Module
-Programming Module
-What is Itertools?

⭐️ Hashtags ⭐️
#TechWithTim #Itertools
Рекомендации по теме
Комментарии
Автор

Comment before watching: Itertools has been a life-saver for a bunch of programming puzzles/challenges I've done recently, and I'm happy to see it get a moment in the spotlight!

rayk
Автор

YESSS I had a lecture on this 2 weeks ago but I forgot everything bc the lecturer rushed through it. So thankful for this video!

imaginecloudsxo
Автор

Hi Tim, I've purchased programming expert IO a week back. So far I'm hooked on it and the fact that the tests gives you a bit of creative freedom makes solving the challenges a lot more fun. Thanks for the effort you put into your craft. It really means a lot for people like me who cant afford to go back to university.

strydomobile
Автор

I have to say this was 'magical'. So many itertool fuctions I did not know about explained well. So many times I could have been using itertools rather than loops.

Mehavenonameyet
Автор

I work a lot with lists of nodes forming paths, knowing the pairwise function would have saved me a lot of headaches

francoisrioux
Автор

Correction: All of python is magic, there's literally libraries for everything you can imagine

leonardsmith
Автор

Great work... You're videos are sharp and keep getting sharper!

markwiygul
Автор

Tim I loved the Django Authentication tutorial you made yesterday, can make more Django project tutorials?

pravachanpatra
Автор

Another information that I don't know about Python. Very impressive that they are codes that make it more easier lol

chessstudent
Автор

Great video and walkthrough! Do you think one of the functions could be used as a part of a sudoku table-generator?

svantepanter
Автор

Great video Tim, I am buying the course

tushensu
Автор

That looks extremely useful!

For the repeat and the chain (from_iterable) functions, I felt like they could be more easily achieved with comprehensions and simple list concatenation/appending.
All, of that if the objects to be repeated would not be large enough as to worry about memory management.
Is that the case or am I missing something?

For a moment, I thought that the chain.from_iterable function could have some extra functionality by maybe "unpacking" a list within a list.
But I tested and it was not the case:
chain.from_iterable_example([[1, 2, 3], [4, 5, 6], [[7, 8, 9]]])
prints:
[1, 2, 3, 4, 5, 6, [7, 8, 9]]

Jmignet
Автор

At 3:30, I think this is bad design. `for x in l` is usually interpreted as "for each item in l", a shorthand for a `for (int i = 0; i < l.size(); i++) {}` style loop. For me, coming from other languages, this would be an unexpected behaviour and I can imagine how it could lead to head-into-wall type bugs.

sid.h
Автор

Love it love learning from each of your videos

excelwithmark
Автор

pairwise() only in python Version 3.10 and above

gzbin
Автор

Actually the term combinatronic sounds even more techie. 🤪

InspektorDreyfus
Автор

But what if we implement everything you said but how it is internally implemented in python; then it will be as efficient.

emanuelkokovics
Автор

Never used this module before, thanks for bringing this up. I can definitely see this saving me a lot of time. Great work 👍

Jacuav
Автор

really good...can you do a video on screen video recorder but without using any modul or import?

tcgvsocg
Автор

You mean in the iterator sequence 3:30

bencipherx