PY
py
1
2
3
4
5
6
7
8
9
file = open("/usercode/files/books.txt", "r")
#your code goes here
for i in file:
if i[-1]=="\n":
print(i[0]+ str(len(i)-1))
else:
print(i[0]+ str(len(i)))
file.close()
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run