Python 📍
📽️ Videos
Ask for Forgiveness or Look Before You Leap?
The problem with looking before leaping, is you never know if you will catch everything odd that will come your way, and still raise an exception. Therefore, you are best to handle inappropriate input as exceptions in a try/catch block rather trying to catch it in advance.
Plus it's actually faster to ask for forgiveness than permission -- as looking before leaping means you are always checking, rather then capturing the exception and dealing with it when it's raised.