+ 1

What what is wrong with my code?? (code is for book titles project)

file = open("/usercode/files/books.txt", "r") text = file.readlines() for line in text: length = len(line) for letter in line: if letter = "\n": length != 1 print(line[0] + length) file.close()

16th Aug 2021, 12:32 PM
Awesome Xith
Awesome Xith - avatar
1 Answer
0
Please search the forum first before posting a new question. Many had tried this challenge and asked similar questions 👍
16th Aug 2021, 1:05 PM
Ipang