第 4 步:让我们在 if-else 语句中使用用户的响应!

  • 在 LOGIC 中,转到并拖动if elseask_user_question()内缩进。
  • 那么,在,拖动在if语句中缩进的Boolean Variable
  • 最后,将缩进的Boolean Variable拖到else语句中。
  • 我们将在下一个活动中更多地讨论这些变量!

    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)