Exceptions In Python | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок

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