SyntaxFix
Write A Post
Hire A Developer
Questions
Use the builtin function zip():
zip()
In Python 3:
z = list(zip(x,y))
In Python 2:
z = zip(x,y)