#17 - zip( ) function in Python

Pubblicato il: 10 ottobre 2020
sul canale di: 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  


In questa pagina del sito puoi guardare il video online #17 - zip( ) function in Python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Tech Vitals 10 ottobre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,001 volte e gli è piaciuto 34 spettatori. Buona visione!