Commit 89983100 by BellCodeEditor

save project

parent e80d08f1
Showing with 8 additions and 5 deletions
...@@ -13,8 +13,11 @@ def new_input(): ...@@ -13,8 +13,11 @@ def new_input():
total.append(price) total.append(price)
print(total) print(total)
return total return total
a=new_input() def sum_a(list_a):
sumnum=0 sumnum=0
for i in a: for i in a:
sumnum+=i sumnum+=i
print(sumnum) return sumnum
\ No newline at end of file a=new_input()
b=sum_a(a)
print(b)
\ 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