Commit 9ae10b93 by BellCodeEditor

save project

parent 4c0a8010
Showing with 7 additions and 0 deletions
def MySum(total):
sum=0
for n in total:
sum+=n
return sum
def new_input(): def new_input():
total = [] total = []
while True: while True:
...@@ -17,3 +22,4 @@ def new_input(): ...@@ -17,3 +22,4 @@ def new_input():
list1 = new_input() list1 = new_input()
print(list1) 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