Answer the question
In order to leave comments, you need to log in
Line break character newline \n python?
Good afternoon.
I am writing because I can no longer flog with some anomalies, forcibly popping up.
DURING the construction of the architecture, I observed that when outputting text to a line from
var1 = 'text \n terron \n rerty'
print(var1)
text
terron retry
f = open("FILE.txt", 'r+', encoding = 'utf-8')
tect = f.readline()
text = tect
print(str(text))
'text \n terron \n rerty'
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