I have four caracter read instead five. Thanks you sir. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

I have four caracter read instead five. Thanks you sir.

Read five caracters in file. https://code.sololearn.com/ck3qN7EkKz5y/?ref=app

17th Oct 2021, 1:30 PM
Malick Diagne
Malick Diagne - avatar
4 Answers
+ 5
Pls be more explicit
17th Oct 2021, 1:37 PM
Chigozie Anyaeji 🇳🇬
Chigozie Anyaeji 🇳🇬 - avatar
+ 4
You have "space" after "This", So you are getting 5 character, the last one is " " "T" -> 1 "h" -> 2 "i" -> 3 "s" -> 4 " " - > 5 Space is also a character, Try using 4 instead of 5 you will get "This" instead of "This "
17th Oct 2021, 1:37 PM
Natu
Natu - avatar
+ 2
You can at least tag Python to be relevant, rather than just 'read five caracters' which lacks clarity on language context. https://code.sololearn.com/W3uiji9X28C1/?ref=app
17th Oct 2021, 1:50 PM
Ipang
0
Malick Diagne you've been asked to use relevant tags (and told how to do that) multiple times by now.
17th Oct 2021, 7:47 PM
Simon Sauter
Simon Sauter - avatar