16 步:使用函数中的信息,让我们使用逻辑来判断我们的动物是否是

  • ,将if and内部拖动到classify_animal()的底部。
  • choice1 == "yes"更改为not has_hairchoice2 == "no"更改为warm_blooded
  • ,拖动 if 语句内缩进的String Variable
  • 最后,将animal_class my_var "This is a string.""bird"

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)