Commit 307ecf5f by BellCodeEditor

save project

parent 9d6b0078
Showing with 6 additions and 2 deletions
......@@ -4,4 +4,9 @@ with open(r"C:\Users\ASUS\Desktop\sales_list.txt",'r',encoding='utf-8') as file:
for i in a:
data=i.split()
#print(i)
print(data[1:])
\ No newline at end of file
#print(data[1:])
sum=0
for e in data[1:]:
sum=sum+int (e)
r=data[0]+str(sum)
print(r)
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