PYTHON: How to Use Try and Except

Header

You know how sometimes when the charger on your phone gets old, it won’t work unless it’s leaned at a 35 degree angle to the right while the device is hanging upside down from the cord? Duck tape. Duck tape is how I solve that problem. Same deal when the fridge handle breaks or when my rain coat gets holes or when my laptop screen gets dislodged from the body.

Duck tape.

Try and Except is the duck tape of Python. Everyone should be aware of its power.

Continue reading “PYTHON: How to Use Try and Except”