MCQs > IT & Programming > Python > Output of the following Python code? try: a=10 print (a-9) raise NameError('0') except NameError as e: print ('1') print (e) finally: print ('0')

Python MCQs

What will be the correct output of the following Python code?

try:

a=10

print (a-9)

raise NameError("0")

except NameError as e:

    print ("1")

    print (e)

finally:

    print ("0")

Answer

Correct Answer:

1

1

0

0


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