
- Python Basic Tutorial
- Python - Home
- Python - Overview
- Python - Environment Setup
- Python - Basic Syntax
- Python - Comments
- Python - Variables
- Python - Data Types
- Python - Operators
- Python - Decision Making
- Python - Loops
- Python - Numbers
- Python - Strings
- Python - Lists
- Python - Tuples
- Python - Dictionary
- Python - Date & Time
- Python - Functions
- Python - Modules
- Python - Files I/O
- Python - Exceptions
ASCII art using Python pyfiglet module
The ASCII text can be used to display many stylish texts by using the module pyfiglet. After installing this module we can use it to control the font that can be used to display the result. In the below program we see various results by choosing various font types.
Example
# import pyfiglet module import pyfiglet #Text in default font out = pyfiglet.figlet_format("Point") print(out)
Output
Running the above code gives us the following result −
Example
# import pyfiglet module import pyfiglet #Text in slant font out = pyfiglet.figlet_format("Point", font="slant") print(out)
Output
Running the above code gives us the following result −
Example
# import pyfiglet module import pyfiglet #Text in 3D font out = pyfiglet.figlet_format("Point", font="3-d") print(out)
Output
Running the above code gives us the following result −
Example
# import pyfiglet module import pyfiglet #Text in 3×5 font out = pyfiglet.figlet_format("Point", font="3x5") print(out)
Output
Running the above code gives us the following result −
Example
import pyfiglet #Text in alligator font out = pyfiglet.figlet_format("Point", font="alligator") print(out)
Output
Running the above code gives us the following result −
Example
import pyfiglet #Text in dot matrix font out = pyfiglet.figlet_format("Point", font="dotmatrix") print(out)
Output
Running the above code gives us the following result −
Example
import pyfiglet #Text in bubble font out = pyfiglet.figlet_format("Point", font="bubble") print(out)
Output
Running the above code gives us the following result −
_ _ _ _ _ / \ / \ / \ / \ / \ ( P | o | i | n | t ) \_/ \_/ \_/ \_/ \_/
Example
import pyfiglet # Text in digital font out = pyfiglet.figlet_format("Point", font = "digital" ) print(out)
Output
Running the above code gives us the following result −
+-+-+-+-+-+ |P|o|i|n|t| +-+-+-+-+-+
- Related Articles
- Histograms Equalization using Python OpenCv Module
- Testing in Python using doctest module
- Convert between binary and ASCII using Python (binascii)
- Reading an image using Python OpenCv module
- Prefix matching in Python using pytrie module
- Python Generate QR Code using pyqrcode module?
- Ascii() in python
- How to Find ASCII Value of Character using Python?
- Stack and Queue in Python using queue Module
- How to install Python MySQLdb module using pip?
- Documentation generation using the pydoc module in Python
- ascii() in Python program
- Draw geometric shapes on images using Python OpenCv module
- Python - Plotting charts in excel sheet using openpyxl module
- Python - Writing to an excel file using openpyxl module

Advertisements