Commit 9ae10b93 by BellCodeEditor

save project

parent 4c0a8010
Showing with 8 additions and 2 deletions
def MySum(total):
sum=0
for n in total:
sum+=n
return sum
def new_input():
total = []
while True:
......@@ -16,4 +21,5 @@ def new_input():
return total
list1 = new_input()
print(list1)
\ No newline at end of file
print(list1)
print(MySum(list1))
\ No newline at end of file
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