Boolean Expressions

  1. What is the value of the following expression?

(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

cluster_python Python cluster_python_basics Basics cluster_python_basics_exercises Exercises python_basics_python_0160_boolean Boolean python_basics_python_0150_datatypes_overview Datatypes python_basics_python_0160_boolean->python_basics_python_0150_datatypes_overview python_basics_python_0120_helloworld Hello World python_basics_python_0110_blahblah Blahblah python_basics_python_0120_helloworld->python_basics_python_0110_blahblah python_basics_python_0140_variables Variables python_basics_python_0150_datatypes_overview->python_basics_python_0140_variables python_basics_python_0130_syntax_etc Syntax etc. python_basics_python_0130_syntax_etc->python_basics_python_0120_helloworld python_basics_python_0140_variables->python_basics_python_0130_syntax_etc python_basics_exercises_boolean Boolean Expressions python_basics_exercises_boolean->python_basics_python_0160_boolean