Problem in Datatype in Operators

in the class Operator 3
instructed has taught that True is nothing but an integer in python
but tried to know the type of a variable containing True it showed its type as ‘bool’.
Please explain
a = True
type(a)

Hello @gnandeepboppudi,
Yes if you find the datatype of True using type(True) it will be bool . But in the video the instructor has mentioned that they are of type bool but inherited from Integer type only where True is 1 and False is 0.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.