STEP 12: Let's finish up our fish if statement! If has_scales is True and eggs_in_water is True, then we know to classify the animal as a fish. Let's make sure we specify this underneath our if statement!

  • Inside classify_animal() and within the if statement, change my_var to animal_class.
  • Then, change the string from "This is a string." to "fish".

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)