Menu

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



Don't have a login?

You can still revise this topic