Commit 1d867580 by BellCodeEditor

save project

parent 340ee9f6
Showing with 9 additions and 7 deletions
sum=0
...@@ -24,10 +24,12 @@ def new_input(): ...@@ -24,10 +24,12 @@ def new_input():
print(total) print(total)
return(total) return(total)
r=new_input() r=new_input()
k=r[0] k=r[]
for i in r: def w(r):
sum=sum+i sum=0
for i in r:
print(sum) sum=sum+i
print(sum)
return sum
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment