דלג לתוכן

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