Look before you leap (LBYL), and easier to ask forgiveness than permission (EAFP) are two strategies on how to deal with exceptions and errors (or avoid them!) in Python. They are not exclusive to Python, but these names are popular in the community.
Sorry about this, but Cheatography is only able to provide the resources it does thanks to revenue from advertising. Please consider disabling your ad blocker before continuing.
If you would prefer to continue without turning off your ad blocker, please click here to temporarily dismiss this message.