Commit 735f7ff7 by BellCodeEditor

auto save

parent 064c1a99
Showing with 18 additions and 2 deletions
for i in range(0,20,1):
print(i)
# i = 0
# while i<20:
# print(i)
# i = i + 1
\ No newline at end of file
......@@ -4,4 +4,9 @@ with open("sales_list.txt","r",encoding="utf-8") as f:
for i in file:
# print(i)
data = i.split()
print(data[0])
\ No newline at end of file
# print(data[1:])
sum = 0
for j in data[1:]:
sum = sum + int(j)
s = data[0]+str(sum)
print(s)
\ 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