Core: learn it Step 7 of 16 on the Python Developer roadmap

try and except

Wrap risky code in try and catch specific errors like ValueError or FileNotFoundError in except. Catch only what you expect, so real bugs still show up.

Learn it on JeliScript

Resources

More in Files and errors

See it on the Python Developer roadmap