title: Dynamic Semantic errors in Python
body: <p>i came across this as an interview question. This question seemed interesting. So, i am posting it here. </p>
  
  <p>Consider the operation which gives semantic error like division by zero. By default, python compiler gives output like "Invalid Operation" or something. Can we control the output that is given out by Python compiler, like print some other error message, skip that division by zero operation, and carry on with rest of the instructions?<br>
  And also, how can i evaluate the cost of run-time semantic checks?
  There are many python experts here. I am hoping someone will throw some light on  this. Thanks in advance.</p>