logo CodeStepByStep logo

relational_expressions

Language/Type: Python boolean logic expressions

Given the following variable declarations:

x = 4 
y = -3
z = 4

What are the results of the following relational expressions?

x == 4
x == y
x == z
y == z
x + y > 0
x - z != 0
y * y <= z
y // y == 1
x * (y + 2) > y - (y + z) * 2

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.