diff --git a/diy.py b/diy.py index 2f5aed9..8a1ed22 100644 --- a/diy.py +++ b/diy.py @@ -2,8 +2,5 @@ with open(r'c:\Users\hp\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8 a=f.readlines() for i in a: b=i.split() - sum=0 - for l in b[1:]: - sum=sum+int(l) - n=b[0]+str(sum) - print(n) \ No newline at end of file + print(b[0]) + print(b[1:]) \ No newline at end of file