Commit 3d537668 by BellCodeEditor

save project

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