Commit 81641746 by BellCodeEditor

save project

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