Skip to content

Night 13: Your pet answers

← 30 Code Nights · Language: Python Pseudocode

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

Handout

Log in or create account

IGCSE, A-Level & AP