Class bool | Sololearn: Learn to code for FREE!


Class bool

whenever we print the type( any obj) will give the respective class. for example my_boolean =True when I print(type(True)) output is class bool so can anyone tell how to see those class coding der any how that class bool is formed or coded.

3/13/2017 7:12:56 AM

Abin Singh R

4 Answers

New Answer


Enter: help(bool) in the Playground and see what happens ;)


Does that answer your question or do you have some specific issue?


it is giving explanation of class bool.


No now I understood whatever data types we use.. that time we are creating instance of particular class .. and class which we use for our object is already coded and kept as built-in classes. Am I right ?