πŸ“Š Python
Q. What is the output of the following code
Code:
print type(type(int))
  • (A) type ‘int’
  • (B) type ‘type’
  • (C) Error
  • (D) 0
πŸ’¬ Discuss
βœ… Correct Answer: (B) type ‘type’

Explanation: The function type() returns the class of the argument to which the object belongs. type(int) returns an object of type “type”.

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”.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
183
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Rajeev Malhotra
Publisher
πŸ“ˆ
94%
Success Rate