0
Exceptions In Python
What is the result of below code? try: variable = 10 print(variable + "hello") print(variable / 2) except (ZeroDivisionError, ValueError, TypeError): print("Divided by zero")
1 Answer
0
its output will be:
"divided by zero"
What is the result of below code? try: variable = 10 print(variable + "hello") print(variable / 2) except (ZeroDivisionError, ValueError, TypeError): print("Divided by zero")