Exercise: Logical operators - not
The expression below currently evaluates to
True
. Add the logical not
operator to reverse the result.num = 10
# add 'not' here...
is_true = num / 5 == 2
print(is_true)
# expected output: False
Python
Setting up Python environment...
Output