Loop on Multiple Python Lists Together - Python Tip #python #coding #pythontutorial

preview_player
Показать описание
In this short Python tip, I show you how to use the built-in function zip() in order to loop through multiple lists together. This Python tutorial is meant for beginners that are learning Python. The zip() function loops through the lists together and for every loop returns the next element from each list as a tuple. This allows you to give clean descriptive names to your variables.
Рекомендации по теме
Комментарии
Автор

zip() can also be used to loop over dictionaries!

SpaghettDev