Commit 76e44507 by BellCodeEditor

save project

parent f554947e
Showing with 9 additions and 1 deletions
......@@ -12,5 +12,13 @@ def new_input():
else:
total.append(unit)
return total
def sum(list):
count=0
for i in list():
count=count+i
return count
result=new_input()
print(result)
pay=sum(price)
print("一共花了"+str(pay)+"!sm or 现金")
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