0

Print ( len ( "some\nthing" ) why the answer is 9 ? I mean it should be 11

12th Jan 2021, 11:51 AM
Gautam Yadav
Gautam Yadav - avatar
4 Respuestas
+ 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
12th Jan 2021, 12:36 PM
noteve
noteve - avatar
+ 1
Simba thanks
12th Jan 2021, 12:35 PM
Gautam Yadav
Gautam Yadav - avatar
+ 1
ASJAD🔹 thanks
12th Jan 2021, 12:36 PM
Gautam Yadav
Gautam Yadav - avatar
+ 1
12th Jan 2021, 12:36 PM
Gautam Yadav
Gautam Yadav - avatar