Created
April 19, 2020 06:50
-
-
Save umanda/7b5506917ed7e1a6907284301f3f53db to your computer and use it in GitHub Desktop.
print colored text and background
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def prRed(skk): return ("\033[91m {}\033[00m" .format(skk)) | |
def prGreen(skk): return ("\033[92m {}\033[00m" .format(skk)) | |
def prYellow(skk): return("\033[93m {}\033[00m" .format(skk)) | |
def prLightPurple(skk): return("\033[94m {}\033[00m" .format(skk)) | |
def prPurple(skk): return("\033[95m {}\033[00m" .format(skk)) | |
def prCyan(skk): return("\033[96m {}\033[00m" .format(skk)) | |
def prLightGray(skk): return("\033[97m {}\033[00m" .format(skk)) | |
def prBlack(skk): return("\033[98m {}\033[00m" .format(skk)) | |
print(prYellow("Hellow World ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment