Commit 8ab19792 by BellCodeEditor

save project

parent e8c1f420
Showing with 7 additions and 5 deletions
......@@ -22,7 +22,9 @@ def sum(money):
count = count + i
return count
# price = new_input()
# pay = sum(price)
# print("您一共消费了" + str(pay) + "元!扫码还是现金呢?")
\ No newline at end of file
# [start]modified by teacher
if __name__ == "__main__":
price = new_input()
pay = sum(price)
print("您一共消费了" + str(pay) + "元!扫码还是现金呢?")
# [end]modified by teacher
\ 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