Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
Print ( len ( "some\nthing" ) why the answer is 9 ? I mean it should be 11
4 Respostas
+ 5
I tried it and Simba is right, 10 is the output.
The length of "\n" or any escape characters is equal to 1.
https://code.sololearn.com/cL6WSEaIoDDp/?ref=app
+ 1
Simba thanks
+ 1
ASJADš¹ thanks
+ 1
ć Nicko12 ć thanks