Home / Programming MCQs / Python MCQs / Question

R

Rajeev Malhotra • 3.97K Points
Extraordinary

Q. What is the output of the following code

Code:
print type(type(int))
(A) type ‘int’
(B) type ‘type’
(C) Error
(D) 0
Explanation by: Rajeev Malhotra
The function type() returns the class of the argument to which the object belongs. type(int) returns an object of type “type”.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.