== checks for an exact match. When someone types 7, B4Coder keeps it as the number 7, so compare with answer == 7, not answer == "7".
Text must match exactly too, capitals and all: "Red" is not "red". Use lower(answer) == "red" to accept Red, RED and red.
Open it in the editor and run it, then change it and see what happens.
answerlower(answer) == "blue" true?Yes →
"Correct!"No →
"Not quite."BLUEIt showsCorrect!BlueIt showsCorrect!greenIt showsNot quite.answer = input("What colour is the sky? ")if answer.lower() == "blue": print("Correct!")else: print("Not quite.")