Commit 8ab19792 by BellCodeEditor

save project

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