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
a=file.readlines()
for i in a:
p=i.split()
print(p[0])
print(p[1:])
\ No newline at end of file
dota=i.spilt()
sum=0
for sales in dota[1:]:
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