STEP 13: Now we can use the value stored in body_image to display the body of our mixed-up character!

  • In GRAPHICS, from drag a Sprite at Position to the bottom of your program.
  • Rename this new sprite body by changing the variable name from sprite to body.
  • Change the image label from "codester" to body_image.
  • Notice that you get a different head and body every time you Run your program!

######################################################################## # PLACE LIST CREATIONS HERE # ######################################################################## stage_list = ["moon", "mars", "jupiter", "pluto", "space", "city"] head_list = ["head1", "head2", "head3", "head4", "head5", "head6"] body_list = ["middle1", "middle2", "middle3", "middle4", "middle5", "middle6"] ######################################################################## # PLACE ALL OTHER CODE BELOW THIS # ######################################################################## stage_image = stage_list[1] stage.set_background(stage_image) random_head = random.randint(0, 5) head_image = head_list[random_head] # sprite = codesters.Sprite("image", x, y) head = codesters.Sprite(head_image, 0, 83) random_body = random.randint(0, 5) body_image = body_list[random_body]