How do I print an error in try except?
How do I print an error in try except? To catch a specific exception, replace Exception with the name of the specific exception. try: a = 1/0. except Exception as e: print(e) try: l = [1, 2, 3] l[4] except IndexError as e: How do I print an error in except block in python? If […]