STEP 20: We're almost done! Let's display the result of our classify_animal function!

  • Before that, however, we need to return the animal's class to main().
  • In , drag Return Statement inside and to the bottom of classify_animal().
  • This should indented only 4 spaces.
  • Finally, change the variable my_var to animal_class.

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)