+ 2

only for those who copleted python3 course in sololearn.

need help I write a code for. python3 course>>exception & file>> book title _____________________________________________________________________________________________________________________ file = open("/usercode/files/books.txt", "r") #your code goes here file = file.readlines() for i in file: print(i[0]+str(len(i)-1)) file.close() ________________________________________________________________________________________________________________ it gives the same correct output but app shows its failed.why?

15th Oct 2020, 4:57 PM
Jitendra
Jitendra - avatar
1 Antwort
+ 3
Last line doesn't include \n
15th Oct 2020, 4:59 PM
[][]