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.
======================================= | | | | | GeeksforGeeks | | | | | =======================================
list.head second third | | | | | | +----+------+ +----+------+ +----+------+ | 1 | None | | 2 | None | | 3 | None | +----+------+ +----+------+ +----+------+
- Python | Printing list vertically
- Programs for printing pyramid patterns in Python
- Object Oriented Programming in Python | Set 2 (Data Hiding and Object Printing)
- Important differences between Python 2.x and Python 3.x with examples
- Python | Sort Python Dictionaries by Key or Value
- Python | Set 4 (Dictionary, Keywords in Python)
- gcd() in Python
- zip() in Python
- pow() in Python
- SQL using Python | Set 1
- chr() in Python
- try and except in Python
- set add() in python
- max() and min() in Python
- Python | a += b is not always a = a + b
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.