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
def sum_a(list_a):
sumnum=0
for i in a:
sumnum+=i
return sumnum
a=new_input() a=new_input()
sumnum=0 b=sum_a(a)
for i in a: print(b)
sumnum+=i \ No newline at end of file
print(sumnum)
\ 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