By SHUBHAM GARG
In this article, we're going to create an ASCII Art using python module pyfiglet that will make your coding experience much creative.
ASCII Art means showing a word using some pattern of special symbols which is specially made for the creative coding experience andenhances the overall look of the code.
For creating ASCII Art we require a python module pyfiglet.
pip install pyfiglet
# import pyfiglet module import pyfiglet text = pyfiglet.figlet_format("CodeSpeedy") print(text)
#import pyfiglet module import pyfiglet text = pyfiglet.figlet_format("CodeSpeedy" , font='digital') print(text)
We can get all the list of available ASCII Art style using the method getFonts() of pyfiglet module.
import pyfiglet fonts = pyfiglet.FigletFont.getFonts() fonts = list(fonts) print(len(fonts))
Submitted by SHUBHAM GARG (Shubham)
Download packets of source code on Coders Packet
Comments