Ever wondered about itertools but couldn't find an example beyond AA AB AC…? Take a look at this minimalist wardrobe challenge and the cycle-method. How many days can you look good without repeating your look?
You will create a wardrobe calendar with:
itertools.cycle()
the built-in next() function
datetime
Timestamps:
00:00 intro
00:12 imports
00:28 calendar settings
00:48 wardrobe category lists
01:42 while True - wardrobe loop
03:25 output
#learnpython #pythontutorial #pythonitertools #python
コメント