Commit 695efb57 by BellCodeEditor

save project

parent 03133bef
Showing with 6 additions and 5 deletions
with open(r"c:\Users\23636\Documents\lesson13_2\sales_list.txt",'r',encoding='utf-8') as life: with open(r"c:\Users\23636\Documents\lesson13_2\sales_list.txt",'r',encoding='utf-8') as life:
a=life.readlines() a=feli.readlines()
#print(a) #print(a)
for i in a: for i in a:
t=i.split() data=i.split()
print(t[0]) sum=0
print(t[1:]) for salse in data[1:]:
\ No newline at end of file sum=sum+int(salse)
print()
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