+ 1
Python file system Code Coach roadblock
I am stuck on the âBook Titlesâ Code Coach problem. I have done a lot of debugging but I am stumped. Hereâs my code I am using: file = open("/usercode/files/books.txt", "r") list = file.readlines() code = "" y = 0 for name in list: list[y] = name.replace("\\n", "") for char in list[y]: x = 1 if x == 1: code = char x += 1 code = code + str(x) y += 1 print(code) code ="" file.close()
3 Answers
+ 1
This will help you:
https://code.sololearn.com/cPeBWF4tkD8w/?ref=app
+ 1
JaScript thanks
0
Your welcome