第7步:你可以更改字符串,无论用户输入什么,都会是小写字母。

  • 点击工具栏中的Python选项卡。在 中拖出 Lower Case
  • 将变量更改为等号左侧的 soccer_ans
  • 将 .lower() 前面的变量更改为 soccer_ans
  • 中拖出 Say ,删除括号中的字符串。 将其替换为 soccer_ans


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)