RETURN: Values created in a function need to be returned! Click Run and read the error message.

  • Add a Return Statement indented at the bottom of each function. Look in for tools.
  • From make_data(), return the list fake_favorites. From your_fav(), return the string favorite_color.
  • Add Function Call into Variable two times underneath the functions. Change the first call to make_data() and store its return in fake_data. Change the second call to your_fav() and store its return in fav.

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)