0
lists project on python
im stuck on the lists project "sum of consecutive numbers" i dont know how to add each number from the list together
3 ответов
+ 1
A =[1,2,3]
print(sum(A))
You can use sum function.
Or,
Sum =0
for num in a:
Sum+=num
print(Sum)
0
where's your code?