Python bool–

It’s interesting how much surprised you can get after using python for 3-4 years.. Especially, if you like me, had taken for granted the Boolean value.. until suddenly examine dir(bool) and find it is derived from both fractions and imaginary numbers.. i.e a boolean obj is a special type of complex no and also a rational number.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.