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.
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.
To print a list of statements with line break:
list=['statement one','statement two', 'statement three']
list_element_on_separate_line = '\n'.join(list)
print(list_element_on_separate_line)`
>>>
statement one
statement two
statement three