except Exception as e: print(e)
# Use 'try' to handle exceptions: try: code_to_try() except <exception, i.e. ValueError>: do_this() # You can add an else: or finally: statement for other branching