Happy Mother's Day!

colors = ["maroon", "red", "purple", "white", "yellow"] stage.set_background_color("maroon") wit = codesters.Sprite("flower4") wit.say("Hello, Shannon.") stage.wait(2) wit.say("I have a message from someone named... Ellen?") stage.wait(2) message = wit.ask("Would you like to hear it? (Please do not use capitals)") if message == "yes": wit.say("Well, she wanted me to tell you...") stage.wait(2) stage.set_background_color("pink") wit.say("HAPPY MOTHER'S DAY!!!") for counter in range(50): my_var = random.randint(0, 4) x_cord = random.randint(-250, 250) y_cord = random.randint(-250, 250) sprite_name = ["sprite" + str(counter),] sprite_name[0]= codesters.Star(x_cord, y_cord, 5, 10, colors[my_var]) stage.set_gravity(10) elif message == "no": # add your code here wit.say("Okay, goodbye") stage.wait(2) stage.remove_sprite(wit) else: # add your code here wit.say("I cannot comprehend what you are saying, please restart.")
  • Run Code
  • Show Console
  • Codesters How To (opens in a new tab)