write function in python with error handling code example Example: exception pyton print except Exception as e: print(e)