can you put a condition in try except python code example Example: python exception try: # code block except ValueError as ve: print(ve)