0

Given an input, How do I convert to ouput: List to Tupled numbers in Python 2/3

Input:

[1, 2, 3, 4, 5, 6]

Output:

[(1, 2), (3, 4), (5, 6)]
nishnet2002
  • 268
  • 1
  • 2
  • 9

0 Answers0