Commit 34c12a87 by BellCodeEditor

save project

parent a6c848ad
Showing with 10 additions and 3 deletions
...@@ -14,6 +14,13 @@ def new_input(): ...@@ -14,6 +14,13 @@ def new_input():
finally: finally:
print('-'*30) print('-'*30)
return total return total
a = new_input()
pay = sum(a)
print('您一共消费了'+str(pay)+'元')
def sum(money):
count = 0
for i in money:
count = count + 1
return count
\ No newline at end of file
o=new_input()
print(o)
\ 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