Which of the following evaluates to False?
Which of the following boolean expressions evaluate to True?
Given that:
name = "Angus Grunge"
age = 24
address = "23 Somewhere Lane, Dunedin 8054"
which of the following boolean expressions evaluate to True? Try to work out the answer yourself rather than just typing the expressions into the computer like a robot.
A Widget is considered to be small if it is less than 10 units tall. Given that a particular Widget's height has been stored in a variable named height, what would be a suitable assignment so that the variable is_small will indicate whether the Widget is small or not?
If height is 10 and width is 20, which of the following boolean expressions evalute to True? You should try to work out the answers yourself, rather than mindlessly typing the expressions into Python to see what happens.
Important: wrong answers to questions now attract penalties. Please make sure you've carefully considered your answer before pressing check.
Select all of the valid boolean(s) of type bool below: