The Wayback Machine - https://web.archive.org/web/20220830022215/https://www.geeksforgeeks.org/python-functions-question-1/
Skip to content
Related Articles

Related Articles

Python | Functions | Question 1

View Discussion
Improve Article
Save Article
  • Difficulty Level : Medium
  • Last Updated : 28 Jun, 2021
View Discussion
Improve Article
Save Article

What will be the output of the following code :




print type(type(int))

(A) type ‘int’

(B) type ‘type’

(C) Error
(D) 0


Answer: (B)

Explanation: The type() function returns the class of the argument the object belongs to. Thus, type(int) returns which is of the type ‘type’ object.

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!