Commit b2ecb454 by BellCodeEditor

save project

parent e8539b8d
Showing with 7 additions and 2 deletions
......@@ -3,5 +3,9 @@ with open(r'c:\Users\Windows 10\Documents\lesson13-1\sales_list.txt','r',encodin
for i in b:
bata=i.split()
print(bata[0])
print(bata[1:])
sum=0
for sb in bata[1:]:
sum=sum+int(sb)
sa=bata[0]+str(sum)
print(sa)
\ 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