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 | +----+------+ +----+------+ +----+------+
- Multiline comments in Python
- Python | Printing list vertically
- Programs for printing pyramid patterns in Python
- Python | Avoiding quotes while printing strings
- Object Oriented Programming in Python | Set 2 (Data Hiding and Object Printing)
- Printing HELLO with turtle module
- Reading Python File-Like Objects from C | Python
- Important differences between Python 2.x and Python 3.x with examples
- Python | Merge Python key values to list
- Python | Convert list to Python array
- Python | Index of Non-Zero elements in Python list
- Python | Sort Python Dictionaries by Key or Value
- Python | Add Logging to a Python Script
- Python | Add Logging to Python Libraries
- Python | Set 4 (Dictionary, Keywords in Python)
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. 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.