zip python

Posted by w3diy - 2 months ago

Python zip() Function

a = ("Rakesh", "Rahul", "Virat")
b = ("Meeera", "Ketan", "Dhara")

x = zip(a, b)

#use the tuple() function to display a readable version of the result:

print(tuple(x))