MCQs > IT & Programming > Python > Correct way to get the exception as variable in except statement?

Python MCQs

What is the correct way to get the exception as variable in except statement?

Answer

Correct Answer: C is correct in Python 2, D is correct in Python 3, and Python 2.6 and 2.7 accepts both.

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