+ 1

why the escape characters \r And \t are not working in sololearn?

5th Aug 2020, 10:18 AM
Mr. 12
Mr. 12 - avatar
3 Respostas
+ 2
\t works as I recall, \r is used by Mac or Windows IIRC, so I don't suppose they have obvious effect in Linux family environment. Mind sharing the troubling code?
5th Aug 2020, 10:28 AM
Ipang
+ 1
Ipang \t is tab, but it is working like a normal space https://code.sololearn.com/cfaaaahzRt4x/?ref=app
5th Aug 2020, 11:59 AM
Mr. 12
Mr. 12 - avatar
+ 1
Mr. 12 That is probably because what we are seeing is not a real console, it is a content of some file used to save code output in Playground. If you run your code in an actual console you will see regular tabs.
5th Aug 2020, 12:06 PM
Ipang