Member-only story

How To NOT Display Warnings In Python (2 Lines Of Code)

Liu Zuo Lin
Sep 4, 2022

--

# Stop annoying warnings from appearing in your Python code

1) No need to install anything

2) Run this code

import warnings
warnings.filterwarnings("ignore")

3) Enjoy your warning-free Python experience

Conclusion

Hope this helps!

--

--

Liu Zuo Lin
Liu Zuo Lin

Written by Liu Zuo Lin

SWE @ Meta | [Ebook] 101 Things I Never Knew About Python: https://payhip.com/b/vywcf

No responses yet