0
Book title python
Anyone know why i dont get the last one?how can i make the last one not minus 1 ? https://code.sololearn.com/currvnTSiDhm/?ref=app
3 Respostas
+ 6
use strip()
https://code.sololearn.com/c7GU6QPrFd37/?ref=app
+ 2
aazizul zainal This also works:
for x in file.read().split("\n"):
print(f"{x[0]}{len(x)}")
+ 1
Thankss i just miss the strip()...
https://code.sololearn.com/cFnVFh8BHVxJ/?ref=app
My new updated ;)