Commit 04e9b84d by BellCodeEditor

save project

parent 3a06215a
Showing with 6 additions and 3 deletions
......@@ -2,5 +2,8 @@ with open(r'c:\Users\ASUS\Documents\lesson13-1\sales_list.txt','r',encoding='utf
w=i.readlines()
for o in w:
q=o.split()
print(q[0])
print(q[1:])
\ No newline at end of file
sum=0
for e in q[1:]:
sum=sum+int(e)
a=q[0]+str(sum)
print(a)
\ No newline at end of file
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