Commit a2a5e67e by BellCodeEditor

save project

parent af4aafbf
Showing with 16 additions and 2 deletions
price=[15,18,14,25]
def qiuhe(price):
count=0
for i in price:
count+=i
return count
a=[10,20,30,40]
s=qiuhe(price)
n=qiuhe(a)
print(s)
print(n)
\ No newline at end of file
......@@ -35,9 +35,11 @@ def new_input():
total.append(p)
if price=="p":
break
print(total)
#print(total)
print('-'*30)
new_input()
return total
t=new_input()
print(t)
......
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