stage.set_background("park")
sprite1 = codesters.Sprite("princess",0,-100)
sprite2 = codesters.Sprite("monkey",-150,150)
sprite1.set_say_color("white")
sprite1.say("a)I like ice cream\n b)I like veggies\nc)I like cheese")
q1 = sprite2.ask("Is the lie a, b, or c")
if (q1=="b"):
sprite1.say("You are correct.")
else:
sprite1.say("Nope, I don't like veggies")
stage.wait(5)
sprite1.say("a)I play soccer\n b)I run\nc)I swim")
q2 = sprite2.ask("Is the lie a, b, or c")
if (q2=="a"):
sprite1.say("You are correct.")
else:
sprite1.say("Nope, I don't play soccer")
stage.wait(5)
sprite1.say("a)I like purple\n b)I like green\nc)I like yellow")
q3 = sprite2.ask("Is the lie a, b, or c")
if (q3=="c"):
sprite1.say("You are correct.")
else:
sprite1.say("Nope, yellow is yucky")
stage.wait(5)
-
Run Code
-
-
Stop Running Code
-
Show Chart
-
Show Console
-
Codesters How To (opens in a new tab)