Commit 81641746 by BellCodeEditor

save project

parent 1bc36a17
Showing with 11 additions and 8 deletions
......@@ -12,14 +12,19 @@ def func():
else:
total.append(unit)
finally:
print("-"*30)
print("-"*30)
return total
price = func()
count=0
for i in price:
count=count+i
print(count)
def sum(s_b):
count=0
for i in s_b:
count=count+i
return count
sum(func())
s=sum(price)
print(s)
......@@ -18135,5 +18140,3 @@ print(count)
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