Skip to content
The Chat Archive
gpt-3.5-turbo-0125· OpenAI WildChat-4.8M (AI2)

stage.setbackground("summer") sprite = codesters.Sprite("person3", 0, -150) choice =…

  1. User

    stage.set_background("summer") sprite = codesters.Sprite("person3", 0, -150) choice = sprite.ask("Guess what season it is!") choice = choice.lower()

    is_correct = (choice == "summer") print(is_correct)

    if is_true: sprite.say("Nice! That's right!")

    We don't need the == in conditional statements for them to run. All we need is a boolean.

    Click Run and click on Console to see that choice == "summer" evaluates to True or False. Change the variable in the if conditional statement from is_true to is_correct. Click Run and enter "summer" inside the ask box. When finished, click Submit and Next to move on.

  2. Assistant

    True