Creating Simple FontArt using Python

Add art to the output code

Fahmi Nurfikri
Thoughtful Shower

--

Python is a programming language that is widely used in the world. One of the reasons is because python is a language that is easy to learn and can be used for many platforms.

After using python for a long time, maybe we feel bored with the appearance of the output that is just like that. Now, in this post, I will give a few tips on how to add FontArt to the python output display.

The method is quite easy, the first thing we have to do is install the PyFiglet library. PyFiglet converts ASCII text to ASCII art font.

pip install pyfiglet

After the installation is complete, then open the code editor and type the following code.

import pyfiglet
result = pyfiglet.figlet_format('Miloo Project')
print(result)

The result of the code is like this.

In addition, we can also change the displayed font, by adding a font parameter to the .figlet_format function.

import pyfiglet
result = pyfiglet.figlet_format('Miloo Project', font='banner3-D')
print(result)

--

--