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")

8th Oct 2020, 1:26 PM
Joshua Osemenho
Joshua Osemenho - avatar
1 Resposta
0
its output will be: "divided by zero"
8th Oct 2020, 1:47 PM
Srishti
Srishti - avatar