Commit 81641746 by BellCodeEditor

save project

parent 1bc36a17
Showing with 9 additions and 6 deletions
...@@ -13,15 +13,18 @@ def func(): ...@@ -13,15 +13,18 @@ def func():
total.append(unit) total.append(unit)
finally: finally:
print("-"*30) print("-"*30)
return total return total
price = func() price = func()
count=0 def sum(s_b):
for i in price: count=0
for i in s_b:
count=count+i count=count+i
print(count) return count
sum(func())
s=sum(price)
print(s)
......
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