Which of the following can be used to check if a value is an int? The value is a = 10
Correct Answer: isinstance(a, int)
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Python Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Python MCQ Questions
Which statement regarding tuple and list is wrong?
Considering Python 2.5, what will be the output of following code? fp = None with open('file.data', 'r') as fp: cont = f.read() print fp.closed
In Python 3, which is incorrect regarding data structures ?
In Python 3, which is correct regarding data types Lists, Tuples, Dictionaries and Sets ?
Which is NOT correct regarding unittest in Python 3?
All Exceptions in Python are subclassed from
When searching for imports Python searches what path?
Python has which 3 different profilers in the standard library?
Suppose a= [1,2,3,4]. What will be the value of 'a' after we execute this statement a= a.append(5) ?
What would be output of following? import sys d = {} for x in range(4): d[x] = lambda : sys.stdout.write(x) d[1]() d[2]() d[3]()