python 3.9 warnings ignore code example Example: ignoring warnings import warnings warnings.filterwarnings(action= 'ignore')