.. ot-exercise:: python.exercises.herdt.boolean :dependencies: python.basics.python_0160_boolean .. include:: Exercise: Boolean Expressions ============================= #. What is the value of the following expression? .. code-block:: python (value1 > 500) or (value2 < 800) and not (value3 == 400) Assuming that the variables used have the following values: #. * ``value1 = 501`` * ``value2 = 799`` * ``value3 = 400`` #. * ``value1 = 500`` * ``value2 = 800`` * ``value3 = 0`` Dependencies ------------ .. ot-graph:: :entries: python.exercises.herdt.boolean