+ 1
Escaping characters problem
Here I was playing with different letters instead of "\n" and "\t" and found some letters that work pretty interesting, ("\a", "\b", "\v") which add a space in the text and "\r" which just escapes the letter 'r', unlike adding any other wrong letter after '\'. Can anyone explain them to me? It would be highly appreciated. https://code.sololearn.com/c4w8J8tz8WLd/?ref=app
2 ответов
+ 2
You don't need to invent a bicycle. http://python-reference.readthedocs.io/en/latest/docs/str/escapes.html
Some escape sequences won't work in SoloLearn output console due to restrictions (like \r, which is a carriage return).
+ 1
Thanks @Maxim Zinyakov
didn't think of that...