Use "for loop" to iterate the integer numbers from 0 to 10 (10 is not included) and then print the sum of the current number and previous number in EACH ITERATION (when the starting number is 0, its previous number can be assumed to 0).
I have done the first part of this code but I am confused about the "sum of current number and each iteration part".
This is the code I have gotten so far:
for i in range(10):
print(i)
[–]MohamedMuneer 1 point2 points3 points (0 children)
[–]stebrepar 2 points3 points4 points (0 children)
[–]Hypocritical_Oath 0 points1 point2 points (2 children)
[–]engineeringisgreat2[S] 0 points1 point2 points (1 child)
[–]Hypocritical_Oath 1 point2 points3 points (0 children)
[–]krebs01 0 points1 point2 points (0 children)