Question:-
Explain Python's zip() function.?
Answer:-
ip() function- it will take multiple lists say list1, list2, etc and transform them into a single list of tuples by taking the corresponding elements of the lists that are passed as parameters. Eg:
list1 = ['A', 'B','C'] and list2 = [10,20,30]. zip(list1, list2) # results in a list of tuples say [('A',10),('B',20),('C',30)]
whenever the given lists are of different lengths, zip stops generating tuples when the first list ends.

Anil Bist
Skills Python
Qualifications :- High School - SLV, College/University - Graphic Era Deemed Univ University,Location :-Dehradun,Dehradun,Uttarakhand,
Description:-
I started my Professional Journey in 2006 with one of the Web Development Company in Bangalore and my 1st framework was "Ruby on Rail" as Web development and delivered around 5+ Projects using this platform. Then came another dimension as JEE/Sturst framework, Gradually I realized that I want to build something on my own and give my passion and energy on creating something different a
Explore
Students (3)
Ask


Vikash
Ask


Anil
Ask


Anil
Recommended Classes

Passionate about LIFE and Learning. Lets explore together better version of "self", &qu...
Professional

Passionate about LIFE and Learning. Lets explore together better version of "self", &qu...
Professional

Passionate about LIFE and Learning. Lets explore together better version of "self", &qu...
Professional