Commit a4d123dd by BellCodeEditor

save project

parent c0868173
Showing with 10 additions and 2 deletions
...@@ -9,4 +9,12 @@ def new_input(): ...@@ -9,4 +9,12 @@ def new_input():
return total return total
result=new_input() result=new_input()
` print(total) ` print(total)
new_input() j new_input()
\ No newline at end of file def sum(money):
count=0
for i inmoney:
count=count+i
return count
price=new_input()
pay=sum(price)
print('你一共消费'+str(par)+'')
\ 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