MCQs > IT & Programming > Python > In Python 2.x, which is the way to check to make sure that the variable 'x' is not a string?

Python MCQs

In Python 2.x, which of the following is the way to check to make sure that the variable 'x' is not a string?

Answer

Correct Answer: assert not isinstance(x, basestring)

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