Answer the question
In order to leave comments, you need to log in
How to put a paragraph in the f-line?
How to put a paragraph in the f-line?
Answer the question
In order to leave comments, you need to log in
If by a paragraph you mean a line break, then something like this. Note that c {c=}
"focus" doesn't fire.
if __name__ == '__main__':
a = 1
b = 2
c = 'qu\nqq'
print(f'{a=}\n{b=}\nc={c}\n{c=}')
"C:\Program Files\Python310\python.exe" C:/PycharmProjects/tst/tst.py
a=1
b=2
c=qu
qq
c='qu\nqq'
Process finished with exit code 0
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question