Commit 89983100 by BellCodeEditor

save project

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