only for those who copleted python3 course in sololearn. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse
+ 3
Last line doesn't include \n
15th Oct 2020, 4:59 PM
[][]