12 步:让我们完成我们的 fish if 语句!如果has_scalesTrue并且eggs_in_waterTrue ,那么我们知道将动物分类为fish 。让我们确保我们在 if 语句下指定它!

  • classify_animal()和if 语句中,将animal_class my_var
  • 然后,将字符串从"This is a string.""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
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)