├── README.md ├── main.py ├── requirements.txt └── tutorial.py /README.md: -------------------------------------------------------------------------------- 1 | # ColoredTextInPython 2 | How to print colored text in python! 3 | 4 | 5 | # 💻 Launch Your Software Development Career Today! 6 | 7 | 🎓 **No degree? No problem!** My program equips you with everything you need to break into tech and land an entry-level software development role. 8 | 9 | 🚀 **Why Join?** 10 | - 💼 **$70k+ starting salary potential** 11 | - 🕐 **Self-paced:** Complete on your own time 12 | - 🤑 **Affordable:** Low risk compared to expensive bootcamps or degrees 13 | - 🎯 **45,000+ job openings** in the market 14 | 15 | 👉 **[Start your journey today!](https://techwithtim.net/dev)** 16 | No experience needed—just your determination. Future-proof your career and unlock six-figure potential like many of our students have! 17 | -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- 1 | import colorama 2 | from colorama import Fore, Back, Style 3 | colorama.init(autoreset=True) 4 | 5 | print('\033[31m' + 'some red text') 6 | print('\033[39m') # and reset to default color 7 | print() 8 | print(f"{Fore.RED}C{Fore.GREEN}O{Fore.YELLOW}L{Fore.BLUE}O{Fore.MAGENTA}R{Fore.CYAN}S{Fore.WHITE}!") 9 | print(f"{Fore.RED}Red Text") 10 | print(f"{Fore.GREEN}Green Text") 11 | print(f"{Fore.YELLOW}Yellow Text") 12 | print(f"{Fore.BLUE}Blue Text") 13 | print(f"{Fore.MAGENTA}Magenta Text") 14 | print(f"{Fore.CYAN}Cyan Text") 15 | print(f"{Fore.WHITE}White Text") 16 | print() 17 | print(f"{Back.RED}B{Back.GREEN}A{Back.YELLOW}C{Back.BLUE}K{Back.MAGENTA}G{Back.CYAN}R{Back.WHITE}O{Back.RED}U{Back.GREEN}N{Back.YELLOW}D{Back.BLUE}!") 18 | print(f"{Back.RED}Red Background") 19 | print(f"{Back.GREEN}Green Background") 20 | print(f"{Back.YELLOW}Yellow Background") 21 | print(f"{Back.BLUE}Blue Background") 22 | print(f"{Back.MAGENTA}Magenta Background") 23 | print(f"{Back.CYAN}Cyan Background") 24 | print(f"{Back.WHITE}White Background") 25 | print() 26 | print(f"{Style.DIM}S{Style.NORMAL}T{Style.BRIGHT}Y{Style.DIM}L{Style.NORMAL}E{Style.BRIGHT}!") 27 | print(f"{Style.DIM}Dim Text") 28 | print(f"{Style.NORMAL}Normal Text") 29 | print(f"{Style.BRIGHT}Bright Text") 30 | print() 31 | print(f"{Fore.YELLOW}{Back.RED}C{Back.GREEN}{Fore.RED}O{Back.YELLOW}{Fore.BLUE}M{Back.BLUE}{Fore.BLACK}B{Back.MAGENTA}{Fore.CYAN}I{Back.CYAN}{Fore.GREEN}N{Back.WHITE}A{Back.RED}T{Back.GREEN}I{Back.YELLOW}O{Back.BLUE}N") 32 | print(f"{Fore.GREEN}{Back.YELLOW}{Style.BRIGHT}Green Text - Yellow Background - Bright") 33 | print(f"{Fore.CYAN}{Back.WHITE}{Style.DIM}Cyan Text - White Background - Dim") 34 | 35 | 36 | ''' 37 | Fore: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE, RESET. 38 | Back: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE, RESET. 39 | Style: DIM, NORMAL, BRIGHT, RESET_ALL 40 | ''' 41 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | colorama 2 | -------------------------------------------------------------------------------- /tutorial.py: -------------------------------------------------------------------------------- 1 | import colorama 2 | from colorama import Fore, Back, Style 3 | colorama.init(autoreset=True) 4 | 5 | print(Fore.RED + 'some red text') 6 | print(Back.CYAN + 'cyan') 7 | print(Style.BRIGHT + "BRIGHT") 8 | print(Fore.RED + Back.GREEN + "red text on green back") 9 | 10 | ''' 11 | Fore: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE, RESET. 12 | Back: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE, RESET. 13 | Style: DIM, NORMAL, BRIGHT, RESET_ALL 14 | ''' --------------------------------------------------------------------------------