Menu

Selection (IF) - Categories

Drag answers into the correct category. Once all of the answers have been categorised press submit to check your answers.

Valid If Statements
Invalid If Statements

Answers
else: print("Fail")
number = 10 if number < 20 print("Number is less than 20")
if 5 > 2: print("Five is greater than two!")
if temperature = 15: print("Warm")
if temperature == 15: print("Warm")
x = 5 y = 10 if x < y print("x is less than y")
if x < y: print("x is less than y")
if number < 20: print("Number is less than 20")
x = 5
y = 10
if answerOne == "London": print("Pass")
If 5 > 2: print("Five is greater than two!")
number = 10
if True print("This will always run")
if answerOne = "London": print("Pass")
answerOne = input("What is the capital of the UK?")
if True: print("This will always run")
Log in or sign-up to access the categorising activity



Don't have a login?

You can still revise this topic