human
list of ints into a list of tuples python
assistant
Here is some code to group a list of ints into a list of tuples of each 2 elements

my_new_list = zip(my_list[0::2], my_list[1::2])

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.