Q. What is the output of the following code?

Code:
print(type(True))
  • (A) <class 'int'>
  • (B) <class 'bool'>
  • (C) <class 'str'>
  • (D) <class 'float'>
πŸ’¬ Discuss
βœ… Correct Answer: (B) <class 'bool'>
Explanation: True and False are boolean values of type bool.
Explanation by: Ankit Singh
True and False are boolean values of type bool.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
62
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Ankit Singh
Publisher
πŸ“ˆ
95%
Success Rate