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:
a=life.readlines()
a=feli.readlines()
#print(a)
for i in a:
t=i.split()
print(t[0])
print(t[1:])
\ No newline at end of file
data=i.split()
sum=0
for salse in data[1:]:
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