Commit 6e1e43d6 by BellCodeEditor

save project

parent b9b4f9e7
Showing with 6 additions and 4 deletions
with open(r"C:\Users\Windows\Desktop","r","encoding=utf-8") as file with open(r"C:\Users\Windows\Desktop","r","encoding=utf-8") as file
a=file.readlines() a=file.readlines()
for i in a: for i in a:
p=i.split() dota=i.spilt()
print(p[0]) sum=0
print(p[1:]) for sales in dota[1:]:
\ No newline at end of file sum=sum+int(sales)
result=dota[0]+str(sum)
print(result)
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