CHALLENGE 11: The Brachiosaurus is a vegetarian!

Remember! When we loop through a list, we use the following syntax: for·value·in·my_list:

value is the current item we're examining and my_list is the list we're looping through.

  • Click Run and watch the dinosaur.
  • Change the loop so it guides the dinosaur to the flowers instead of the pigs.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)