(Python) Hey, how to separate different values of a list as follows?
list1=[1,2,3,4,5,6,7,8,9,10]
into
list2=[[1,2],[3,4],[5,6],[7,8],[9,10]]
and then perform addition so that the resultant list is:
list3=[[3],[7],[11],[15],[19]]
Thanks for helping !