跳到主要内容

Night 13: Your pet answers

← 30 个编程之夜 · 语言: Python 伪代码
English

Tonight: your pet answers

  • Until now, your pet's tricks did something: they output text.
  • Tonight your pet answers. A function gives a value back.
  • You will learn one thing: FUNCTION with RETURN.

Words for tonight

Word Meaning
function a named block of code that gives a value back
return give a value back to the place where it is used
result the value a function gives back

讲义

登录或创建账户

IGCSE, A-Level & AP