Commit 92873393 by BellCodeEditor

save project

parent 646439c4
Showing with 12 additions and 5 deletions
...@@ -12,8 +12,16 @@ def new_input(): ...@@ -12,8 +12,16 @@ def new_input():
else: else:
total.append(price) total.append(price)
print(total) print(total)
return total[2] return total
a=new_input()
for i in a: def sum_a(list_a):
sumnum=0
for i in list_a:
sumnum+=i sumnum+=i
print(sumnum) return sumnum
\ No newline at end of file a=new_input()
b=sum_a(a)
print(b)
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