Commit 42e6a825 by BellCodeEditor

save project

parent ed8a5d9d
Showing with 9 additions and 4 deletions
...@@ -13,8 +13,13 @@ def new_input(): ...@@ -13,8 +13,13 @@ def new_input():
total.append(unit) total.append(unit)
return(total) return(total)
def sum(money):
count=0
for i in money:
count=count+1
return count
prict=new_input()
result=new_input() pay=sum(price)
print(result) print(str(pay)+"元")
\ No newline at end of file \ 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