notebook.community
Edit and run
In [ ]: n=int(input()) i=0 total=0 x=0 while i < n: x=int(input()) total=total+x i=i+1 print(total)
n=int(input()) i=0 total=0 x=0 while i < n: x=int(input()) total=total+x i=i+1 print(total)