exception handling example in python Example: python exception try: # code block except ValueError as ve: print(ve)