Answer the question
In order to leave comments, you need to log in
How to leave the \n character in a string?
Hello. How can I leave the \n character in a string? When outputting, these characters work as a line break, but I need the line to remain unchanged. If you enter 'str\ning' in the console, then the same is displayed, but if in IDLE print('str\ning') the output is already:
srt
ing
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question