I have a list of integers like this
numbers = [1, 5, 7, 19, 22, 55]
I want to have a function that takes this as input and gives me a list of paired tuples that should contain the numbers as (1,5), (5,7), (7,19)
and so on.
Kindly suggest.
I have tried using for loops. Didn't get expected output.