zip() in Python - Combine Iterables Together

preview_player
Показать описание
Learn how to use the zip() function in python to combine iterables together. zip() allows you to combine any number of iterable objects together in tuples, it's especially useful when looping through multiple objects at the same time!

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
💰 Courses & Merch 💰

🔗 Social Medias 🔗

🎬 My YouTube Gear 🎬

💸 Donations 💸
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️

⭐️ Tags ⭐️
- zip() Python
- Python zip()
- zip() Function Python
- Python Shorts
- zip() in Python
- zip() Python Tutorial

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

What other Python shorts should I make?!

TechWithTim
Автор

I love this "short" stuff. Sometimes I don't have time to watch a longer vid.

johnnytoobad
Автор

passed my python quiz because I remembered watching a previous vid of yours talking about the zip function. Thanks for making this!

MercysV
Автор

Great video. I'd love to see more of these in the future.

nakejtypek
Автор

Who said educational content cannot be less than 60 seconds! Great job!

HitraNtheProgrammer
Автор

Good stuff man! Only feedback: move the console up a little so it doesn't get covered by the title of the short

_taylor_v
Автор

I really love these shorts, please upload more and off course longer length tutorials as well

shreehari
Автор

Hey I just love these type shorts pls do more on itertools, collections.... And some built in functions

imbatman
Автор

The zip function in Python returns an iterator of tuples by aggregating elements from two or more iterables. It pairs together the elements at corresponding positions from each iterable. When using zip, it's important to note that it returns an iterator, which can only be iterated over once. Therefore, if you intend to use the zip values multiple times, it's necessary to convert the zip object into a list. For example:
z = list(zip(names, ages, initials))

tomaszpielecki
Автор

Loving these method shorts!!! Great addition to the channel! Keep up the great work Tim!!

BookOfMorman
Автор

I want to expect more shorts like this. Great! ✨

bharathwaj
Автор

Hey Tim, I love this short videos, please more! Great work

Mitsch
Автор

I like these quick tutorials. Maybe longer than a minute.

RichardGreco
Автор

The most useful function after map in my opinion

opcon
Автор

Thanks, Tim! Keep posting these please! They’re really helpful

roni
Автор

how would I iterate over the list now? lets say I want to access '40' from one of the tuples. z[1][1] doesnt seem to work.

josueamaya
Автор

How do you shorten the path shown in the terminal?

tank_tales
Автор

Will it combine tuples and lists together.

saibadam
Автор

Cool tip, man! I didn't know about this!

vikasjha
Автор

Technically you could create an array of your own and insert those arrays inside right ?

randomguy