golb

Jupyter notebook - ipynb

import warnings

warnings.filterwarnings("ignore", category=DeprecationWarning)
warnings.filterwarnings("ignore", category=RuntimeWarning)

HTML block

<div class='alert alert-block alert-info'>
Blue box - info
</div>

<div class='alert alert-block alert-success'>
Green box - success
</div>

<div class='alert alert-block alert-warning'>
Orange box - warning
</div>

<div class='alert alert-block alert-danger'>
Red box - danger
</div>

Answer function

def answer(*args):
    FORGROUND='\x1b[30m' # green
    BACKGROUND='\x1b[42m'# green
    DEFAULT = '\x1b[39m' # reset color
    print(BACKGROUND + FORGROUND, *args, DEFAULT)