0
Q:

and bool python

# Booleans represent one of two values: True or False.
# When you compare two values, the expression is evaluated and Python returns the Boolean answer:
print(10 > 9)
> True
print(10 < 9)
> False
# All True Examples
bool("abc")
bool(123)
bool(["apple", "cherry", "banana"])
# All False Examples
bool(False)
bool(None)
bool(0)
bool("")
bool(())
bool([])
bool({})
5
i = 5
ii = 10
if i == 5 and ii == 10:
      print "i is 5 and ii is 10"
0
checker = None 

if some_decision:
    checker = True

if checker:
    # some stuff
-1

New to Communities?

Join the community