Commit 057ee976 by BellCodeEditor

save project

parent b286dede
Showing with 13 additions and 1 deletions
price=[15,18,14,25]
sum=0
for i in price:
sum=sum+i
print(sum)
\ No newline at end of file
......@@ -14,4 +14,10 @@ def new_input():
total.append(unit)
return total
a=new_input()
print(a)
def sum(mb):
x=0
for i in mb:
x=x+i
return x
b=sum(a)
print(b)
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