I am creating a python program.
I have a list:
[3, 28, 25, 126, 25, 127]
How can I turn this into a list of tuples, so the list becomes:
[(3,28),(25,126),(25,127)]
It joins 2 elements and makes a tuple.
I am creating a python program.
I have a list:
[3, 28, 25, 126, 25, 127]
How can I turn this into a list of tuples, so the list becomes:
[(3,28),(25,126),(25,127)]
It joins 2 elements and makes a tuple.