Commit eb38a285 by BellCodeEditor

save project

parent 5fd2a845
Showing with 9 additions and 1 deletions
......@@ -17,11 +17,18 @@ list.close()
list = open(r"c:\Users\EDZ\Documents\lesson13-1\sales_list.txt",'r',encoding='utf-8')
b=0
a = list.readlines()
print(a)
for i in a:
c=0
data = i.split()
num = data[1:]
print(num)
name = data[0]
for j in num:
b = int(j)
c = c + b
c = str(c)
print(name + c)
list.close()
\ 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