There are some issues i see in your program.
1.install pyfiglet module
pip install pyfiglet
2.msg = input("What would you like to print? ")
no need to take in put on this line as next line takes input and logic of your program is based on the next input
3.ascii_art = pyfiglet.figlet_format(msg) colored_ascii = colored(ascii_art, color=col) print(colored_ascii)
The above line should be
ascii_art = pyfiglet.figlet_format(col) colored_ascii = colored(ascii_art, color=col) print(colored_ascii)
I installed the pyfiglet module and did implement modified program
import pyfiglet from termcolor import colored total_colors = ["red", "green", "yellow", "blue", "magenta", "cyan", "white"] msg = print("What would you like to print? ") col = input("what color?") if col not in total_colors: col = "green" ascii_art = pyfiglet.figlet_format(col) colored_ascii = colored(ascii_art, color=col) print(colored_ascii)
Output:
What would you like to print? what color?blue [34m _ _ | |__ | |_ _ ___ | '_ \| | | | |/ _ \ | |_) | | |_| | __/ |_.__/|_|\__,_|\___| [0m
figletas well.pyfiglet?pyfigletin your project?