STEP 10: Now for the body section! We'll need a list of image labels to pick from.

  • In LOGIC, from , drag another List of Strings into the first section of your program, just under head_list.
  • Change the list name to body_list.
  • Give body_list 6 string values: "middle1", "middle2" and so on, up to "middle6".

######################################################################## # PLACE LIST CREATIONS HERE # ######################################################################## stage_list = ["moon", "mars", "jupiter", "pluto", "space", "city"] head_list = ["head1", "head2", "head3", "head4", "head5", "head6"] ######################################################################## # 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)