What is the data type of the value True in Python?
Correct answer
D. bool
5 views
D. bool
5 views
True and False are of type bool, a subclass of int.
Asked in: Python Interview Data Types
https://docs.python.org/3/library/stdtypes.htmlNot sure why the answer is D? Ask here and get an explanation.