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'
BACKGROUND='\x1b[42m'
DEFAULT = '\x1b[39m'
print(BACKGROUND + FORGROUND, *args, DEFAULT)