Commit 238c29ea by BellCodeEditor

save project

parent ec5313e2
Showing with 11 additions and 1 deletions
......@@ -11,4 +11,14 @@ def get_list():
else:
total.append(price)
return total
print(get_list())
def getSum(lis):
sum = 0
for i in lis:
sum += i
return sum
print(getSum(get_list()))
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