What will be the output of the following code? print (type(type(int)))
(a) type ‘int’
(b) <class ‘type’>
(c) Error
(d) <class ‘int’>
Answer:
The type( ) function returns the class type of the object passed as parameter.
So, type(type(int)) will return the class ‘type’.
Therefore, the output will be <class ‘type’>
So, the correct answer is (b).