Commit a9c209b8 by BellCodeEditor

save project

parent 2c8cac64
Showing with 9 additions and 3 deletions
...@@ -13,5 +13,11 @@ def new_input(): ...@@ -13,5 +13,11 @@ def new_input():
total.append(unit) total.append(unit)
print("_"*30) print("_"*30)
return total return total
a = new_input() def sum(money):
print(a) count = 0
\ No newline at end of file for i in money:
count = count + i
return count
price = new_input()
pay = sum(price)
print("您一共消费了" + str(pay) + "亿元!扫码还是现金,不给别想活着!")
\ 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