Computing and displaying boolean operation result

Report a typo

Given two variables x and y set to 'True' and 'False' respectively, fill in the blanks in the given Python code. The code computes a third variable, z, as a Boolean operation between x and y. It then concatenates the result of the Boolean operation to the string 'The result of 'True and False' is ' and stores this in a variable called 'result'. Your task is to make sure the print statement outputs the correct computation of the Boolean operation.

Fill in the gaps with the relevant elements
x = 
y = 
z = x  y
result = "The result of 'True and False' is " + str(z)
print(result)
FalseandTrue
___

Create a free account to access the full topic