Commit dcb73804 by BellCodeEditor

save project

parent 96b51611
Showing with 7 additions and 1 deletions
...@@ -3,4 +3,9 @@ with open(r'C:\Users\EDY\Documents\lesson13-1\sales_list.txt','r',encoding='utf- ...@@ -3,4 +3,9 @@ with open(r'C:\Users\EDY\Documents\lesson13-1\sales_list.txt','r',encoding='utf-
#print(a) #print(a)
for i in a: for i in a:
s=i.split() s=i.split()
print(s[1:]) #print(s[1:])
sum=0
for z in s[1:]:
sum=sum+int(z)
j=s[0]+str(sum)
print(j)
\ 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