第15步:让我们把语句中的最后一个单词传递给函数!

  • , 中,将第三个 Return Variable 拖动到程序底部。
  • 将返回变量的名称更改为 third_word
  • 将参数 "mars" 赋予函数 pig_latin

返回变量 third_word 现在存储值 "arsmay"

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)