Changing text font and colour
<p>Whether it's a module or something I can define in my code, is there a way to change the output text like making it <em>italic</em> or <strong>BOLD</strong>? Also, are colours a thing?</p>

<p>Taking the question @LukeK posted, you can use <a href="https://en.wikipedia.org/wiki/ANSI_escape_code?wprov=sfla1" rel="nofollow">ANSI escape sequences</a> anywhere in your strings:</p>

<pre><code>print("Roses are \033[31mred\033[0m") # Will make red... red
</code></pre>

<p>You can combine them in that way (I hope it's clear enough):</p>

<pre><code>BOLD_AND_RED = "\033[1;31m"
</code></pre>

<p>On the other hand, you can find modules that allow simpler (or nicer) ways of doing it, but I prefer writing code with minimal dependencies, so I usually put some global variables and I later concatenate them with my strings:</p>

<pre><code>RED    = "\033[31m"
BOLD   = "\033[1m"
ITALIC = "\033[3m"
RESET  = "\033[0m"

print(BOLD + RED + "ERROR: " + RESET + ITALIC + "blah blah...")
</code></pre>

<p>Last note! This escape sequences only work in terminals, and I don't think they work in Windows cmd.</p>

python