Hello,
i am having trouble writing this program on Python. Write a program that asks the user to enter a list with an even number of integers. The program then has to construct a new list by adding pairs of integers in the list. I have been working on this for a few hours and the closest i got was
Enter a list with an even number of integers:: [2,7,8,-3,11,-22]
[9] [15] [5] [8] [-11]
but i am suppose to have [9, 5, -11].
Any help would be greatly appreciated. Thanks in advance
i am having trouble writing this program on Python. Write a program that asks the user to enter a list with an even number of integers. The program then has to construct a new list by adding pairs of integers in the list. I have been working on this for a few hours and the closest i got was
Enter a list with an even number of integers:: [2,7,8,-3,11,-22]
[9] [15] [5] [8] [-11]
but i am suppose to have [9, 5, -11].
Any help would be greatly appreciated. Thanks in advance
Comment