Commit 3d537668 by BellCodeEditor

save project

parent a43b40bb
Showing with 11 additions and 9 deletions
......@@ -12,11 +12,13 @@ def new_input():
else:
total.append(money)
print("-"*30)
return total
result = new_input()
print(result)
def sum(money):
couny=0
for i in price:
count=count+1
return(count)
\ No newline at end of file
return total
def sum(money):
count=0
for i in money:
count=count+1
return count
price = new_input()
pay = sum(price)
print("需呀支付"+str(pay)+"yuan")
\ 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