Bug hunts · Quests 5 to 7

Bug hunt: the program runs but is wrong

These programs run without an error message, yet they do the wrong thing.

Question 1 of 5

What is wrong, or how do you fix it?

age = 10
if age = 10:
    print("Ten!")

See the book Code Quest with Python →