#17 - zip( ) function in Python

Publicado em: 10 Outubro 2020
no canal de: Tech Vitals
2,001
34

Learn to use zip( ) function in Python. zip( ) function basically returns a zip object that contains the iterator of tuples or the list of tuples. The zip( ) function takes iterables as arguments and returns an iterator.
For example, if two lists are passed in the zip( ) function, The function will return the iterator of tuples where the first tuple will contain the pairs of first items of both lists, the second tuple will contain the pairs of second items of both lists and so on. If one list contains 3 values and the another list contains 4 values, the zip( ) function will return an iterator of 3 tuples because zip( ) function selects the shortest iterable.

Facebook:   / techvitals  


Nesta página do site você pode assistir ao vídeo on-line #17 - zip( ) function in Python duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Tech Vitals 10 Outubro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 2,001 vezes e gostou 34 espectadores. Boa visualização!