Ask Your Question

Revision history [back]

This is correct (in Python 3). If you really want the output to be a list, run

list(zip(x, y))

This is correct (in Python 3). If you really want the output to be a list, run

list(zip(x, y))

but if you want to use it in a loop, it's better to keep the zip object.