Multi-Line printing in Python
Last Updated :
21 Jan, 2019
We have already seen the basic use of print function previous article. Now, let’s see how to use print function for multi-line printing. This can easily be done using multiline string i.e. three single quotes ''' Geeksforgeeks '''
.
Let’s see different examples to see the demonstration for the same.
Example #1:
Output:
=======================================
| |
| |
| GeeksforGeeks |
| |
| |
=======================================
Example #2:
Output:
list.head second third
| | |
| | |
+----+------+ +----+------+ +----+------+
| 1 | None | | 2 | None | | 3 | None |
+----+------+ +----+------+ +----+------+
Share your thoughts in the comments
Please Login to comment...