Next Index Previous

Python Examples

25. zip() function example.

a = [2,3,4]
b = ['two','three','four']

res = list(zip(a,b))
print(res)

Output :
[(2,'two'),(3,'three'),(4,'four')]



Father of Python Language

Guido-van-Rossum

Guido van Rossum

Born: January 31, 1956, Netherlands