list c by adding a[0]+b[0], a[1]+b[1]........ how can i implement this?
This might help but it is kind of like a newbie a = [3,2,1,3,4,5] b = [3,8,9,0,6,8] c = [] n = 0 while n < len(b) and n < len(a): c.append(a[n] + b[n]) n = n + 1 print(c)
Обсуждают сегодня