Skip to content

Instantly share code, notes, and snippets.

@umanda
Created April 19, 2020 06:50
Show Gist options
  • Save umanda/7b5506917ed7e1a6907284301f3f53db to your computer and use it in GitHub Desktop.
Save umanda/7b5506917ed7e1a6907284301f3f53db to your computer and use it in GitHub Desktop.
print colored text and background
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