Exercise: Logical operators - and I
Use the Logical Operator
and
to combine the boolean values of x and y. Assign the result to the variable is_true.x = True
y = False
# use logical operator 'and' to combine the Booleans
is_true =
print(is_true)
# expected output: False
Python
Setting up Python environment...
Output