Exercise: 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 Programming cluster_python_basics Python: The Language Fundamentals cluster_python_exercises Exercises cluster_python_exercises_herdt Exercises (External) python_basics_python_0130_syntax_etc Syntax etc. python_basics_python_0120_helloworld Hello World python_basics_python_0130_syntax_etc->python_basics_python_0120_helloworld 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_0110_blahblah Blahblah python_basics_python_0120_helloworld->python_basics_python_0110_blahblah python_basics_python_0140_variables Variables python_basics_python_0140_variables->python_basics_python_0130_syntax_etc python_basics_python_0150_datatypes_overview->python_basics_python_0140_variables python_exercises_herdt_boolean Exercise: Boolean Expressions python_exercises_herdt_boolean->python_basics_python_0160_boolean