Commit 1ac2cb9e by BellCodeEditor

auto save

parent 0ccd6f7b
Showing with 18 additions and 4 deletions
price=[15,18,14,25]
sun=0
for i in price:
sun=sun+i
print("sun")
\ No newline at end of file
...@@ -17,7 +17,9 @@ def new_input(): ...@@ -17,7 +17,9 @@ def new_input():
def sum(money): def sum(money):
count = 0 count = 0
for i in money: for i in money:
count = count + i count += i
return count return count
result =new_input() result =new_input()
print(result) a = sum(result)
\ No newline at end of file print(a)
\ 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