PASO 17 : Usando la información que tenemos en nuestra función, usemos la lógica para averiguar si nuestro animal es un mamífero .

  • Desde , arrastre if and dentro y hasta la parte inferior de classify_animal() .
  • Cambia choice1 == "yes" a has_hair y choice2 == "no" a warm_blooded .
  • En , arrastre String Variable con sangría dentro de la instrucción if.
  • Finalmente, cambia my_var a animal_class y "This is a string." a "mammal" .

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
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)