Exceptions In Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

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 Answer
its output will be: "divided by zero"
8th Oct 2020, 1:47 PM
Srishti - avatar