Class bool | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Class bool

whenever we print the type( any obj)..it 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 ..is der any guide..like how that class bool is formed or coded.

13th Mar 2017, 7:12 AM
Abin Singh R
Abin Singh R - avatar
4 Answers
+ 9
Enter: help(bool) in the Playground and see what happens ;)
13th Mar 2017, 7:37 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 6
Does that answer your question or do you have some specific issue?
13th Mar 2017, 10:19 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
0
it is giving explanation of class bool.
13th Mar 2017, 8:25 AM
Abin Singh R
Abin Singh R - avatar
0
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 ?
13th Mar 2017, 11:42 AM
Abin Singh R
Abin Singh R - avatar