What Are Try/Except Statements in Python?

An introduction to safeguarding your code

Jonathan Hsu
Better Programming
Published in
4 min readJan 27, 2020

--

Photo by Caspar Camille Rubin on Unsplash

When we start out programming our scripts are simple and straightforward and, most importantly, we tend to assume a perfect operating environment. Every variable will always exist and the data will be properly formed. If only the real world were so reliable!

--

--