A

Admin • 833K Points
Coach

Q. What is the output of the following code

Code:
print type(type(int))
  • (A) type ‘int’
  • (B) type ‘type’
  • (C) Error
  • (D) 0
  • Correct Answer - Option(B)
  • Views: 23
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

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.

Be the first to start discuss.