I am new to programming. I am currently learning python and I am trying to add pairs of numbers in a list. Let's say I have something like this:
a = [1, 2, 3, 4 , 5, 6]
and I am trying to add them in pairs like this:
a = [1 + 2, 3 + 4, 5 + 6]
Also, the list will always have an even number of elements.I can't wrap my mind around the problem. Please Help.