MCQs > IT & Programming > Python > Output of the following Python code: try : a = 3 if a < 4 : b = a/(a-3) print (b) except(ZeroDivisionError, NameError): print ('1')

Python MCQs

Find the output of the following Python code and choose the correct answer from the given options.

try :

a = 3

if a < 4 :

    b = a/(a-3)

print (b)

except(ZeroDivisionError, NameError):

print ("1")


Answer

Correct Answer:


Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it