Skip to content

Instantly share code, notes, and snippets.

@yungztrunks
Created September 24, 2024 11:43
Show Gist options
  • Save yungztrunks/e1c198e2c198d2a11e7b6b0392eb2b39 to your computer and use it in GitHub Desktop.
Save yungztrunks/e1c198e2c198d2a11e7b6b0392eb2b39 to your computer and use it in GitHub Desktop.
Python colored print statements, various printed colors
PURPLE = "\033[95m"
CYAN = "\033[96m"
DARKCYAN = "\033[36m"
BLUE = "\033[94m"
GREEN = "\033[92m"
YELLOW = "\033[93m"
RED = "\033[91m"
BOLD = "\033[1m"
UNDERLINE = "\033[4m"
END = "\033[0m"
# for a single line
print(GREEN, "It works!", END)
# can also be used for longer lines
print(BLUE, "Cursed Technique")
print(RED, "Cursed Technique")
print(PURPLE, "Hollow Technique", END)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment