How to Evaluate Values and Get Boolean Answer in Python


In this example we will show how to evaluate values and get the Boolean answer in Python.

Source Code

print(bool('Python'))
print(bool('6.6'))
print(bool(6.6))

Output:

True
True
True
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments