跳到主要内容

Night 13: Your pet answers

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

Tonight: your pet answers

  • Until now, your pet's tricks did something: they printed.
  • Tonight your pet answers. A function can give a value back.
  • You will learn one thing: return.

Words for tonight

Word Meaning
return give a value back to the place of the call
result the value a function gives back
True / False the two answers to a yes/no question

讲义

登录或创建账户

IGCSE, A-Level & AP