I just made a program in python but the statements are too close to each other in the output. So how can i add a line break between two statements in python.
4 Answers
\n gives you a new line. You can put it anywhere in a string and when printing it you get a new line.
In [1]: print('ab')
ab
In [2]: print('a\nb')
a
b
There are more of this kind, including tabs etc. https://docs.python.org/3/reference/lexical_analysis.html#literals
printorprint()on its own to give you a blank line.