Learn
Conditionals & Control Flow
Compare... Closelier!
Excellent! It looks like you’re comfortable with basic expressions and comparators.
But what about extreme expressions and comparators?
Instructions
1.
Let’s run through the comparators again with more complex expressions. Set each variable to True
or False
depending on what you think the result will be.
- Set
bool_one
to the result of(20 - 10) > 15
- Set
bool_two
to the result of(10 + 17) == 3**16
- Set
bool_three
to the result of1**2 <= -1
- Set
bool_four
to the result of40 * 4 >= -4
- Set
bool_five
to the result of100 != 10**2