Commit bcedf1f8 by BellCodeEditor

save project

parent 6d4314f5
Showing with 6 additions and 3 deletions
......@@ -4,5 +4,8 @@ with open(r'c:/Users/Administrator/Documents/lesson13-1/sales_list.txt','r',enco
data = i.split()
name = data[0]
data = data[1:]
print(name,data)
\ No newline at end of file
sum = 0
#print(name,data)
for sales in data:
sum = sum + int(sales)
print(name,':',sum)
\ 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