0

Hello guys. I wrote a code but there's a bug which I can't debug it. Any help pls? [SOLVED]

https://code.sololearn.com/cfe64v1samS5/?ref=app

18th Dec 2020, 5:00 PM
Mas'ud Saleh
Mas'ud Saleh - avatar
3 Réponses
+ 2
Mas-ud Al-hassan ,i asked the same question and solved it. Check my profile under questions
18th Dec 2020, 6:53 PM
Angry Student(Docvad)
Angry Student(Docvad) - avatar
+ 1
Remember that all lines, except the last one, contain a \n at the end, which should not be included in the character count.. so you have to remove the \n from the lines(i). and then you can do print(i[0]+(str(len(i))))
18th Dec 2020, 5:30 PM
Med Amine Fh
Med Amine Fh - avatar
- 1
How can I remove the \n ?
18th Dec 2020, 6:46 PM
Mas'ud Saleh
Mas'ud Saleh - avatar