Commit cfe44db6 by BellCodeEditor

save project

parent 31650f9d
Showing with 8 additions and 2 deletions
...@@ -12,5 +12,11 @@ def new_input(): ...@@ -12,5 +12,11 @@ def new_input():
else: else:
total.append(unit) total.append(unit)
return total return total
def sum(list):
sump = 0
for i in list:
sump += i
return sump
price = new_input() price = new_input()
new_input() sumprice = sum(price)
\ No newline at end of file print(sumprice)
\ 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