+ 1
I have a question about Lesson 51
file = open("/usercode/files/books.txt", "r") list = file.readlines() for i in list: print (i[0]+str(len(i.strip())) file.close() This is my code and I keep getting errors that say "Invalid Syntax" on line 7. What is wrong with "file.close(0)"?
2 Respostas
+ 3
Your print statement is missing a closing parenthesis.
0
Oh thanks. I didn't see that