Commit 1a2b1d11 by BellCodeEditor

save project

parent a54ad1cb
Showing with 9 additions and 7 deletions
with open(r"c:\Users\PC\Desktop\num.txt",'r',encoding="utf-8") as o:
a=o.readlines()
print(a)
for i in a:
print(i)
# d=a.split(" ")
# c=a[1:]
# print()
\ No newline at end of file
for i in a:
d=i.split()
c=d[1:]
e=d[0]
f=0
for i in c:
f+=int(i)
print(f)
\ 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