
#345 Some Big Time Releases
Python Bytes
00:00
How to Use Zip to Iterate Through Parallel Lists
Take advantage of enumerate function This is just remember to teach people that are coming from c or other languages. If you're working with indexes the default is good But if you're trying to print thing one thing two thing three then start equals one is the way to go Yeah, instead of or if you're using it to like get into some other data structure or something. Zip is great for parallel? Iterating through parallel lists and you can do more than this is showing Uh, name and age is two different lists and uh going through them I my my tip is just practice this several times and unfrequently if you need it Because zip works because it's not that confusing but a lot of
Transcript
Play full episode