Python Programming - Console Input/Output - Discussion

Discussion Forum : Console Input/Output - General Questions (Q.No. 28)
28.
How can you print a multiline string?
print("Line 1\nLine 2")
multiline_print("Line 1", "Line 2")
print_multiline("Line 1", "Line 2")
print("Line 1")
print("Line 2")
Answer: Option
Explanation:
To print a multiline string in Python, use newline characters (\n) to separate lines within a single print() statement.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.