working with boolean in python code example
Example 1: Which of the following is a Boolean in Python?
>>> type(True)
<class 'bool'>
>>> type(true)
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
NameError: name 'true' is not defined
Example 2: and bool python
i = 5
ii = 10
if i == 5 and ii == 10:
print "i is 5 and ii is 10"