Program To Handle Type Error In Python