Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from colorama import init, Fore
- colors = {
- 'white': Fore.WHITE,
- 'green': Fore.GREEN,
- 'red': Fore.RED,
- 'yellow': Fore.YELLOW
- }
- def print_color(text, color):
- print(colors[color.lower()])
- print(text)
- print(colors['white'])
- print_color('Example', 'green')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement