0
Hello guys. I wrote a code but there's a bug which I can't debug it. Any help pls? [SOLVED]
3 Respuestas
+ 2
Mas-ud Al-hassan ,i asked the same question and solved it. Check my profile under questions
+ 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))))
- 1
How can I remove the \n ?