Answer the question
In order to leave comments, you need to log in
Perceives as text \n\n in python what to do?
I take the text from the database into the variable, in which \n\n are present, but when outputting the variable to the print, \n\n is displayed as text, and not as eol, what needs to be done so that it considers it as eol
s = 'вот текст\n\nНовая строчка'
print(s)
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