Knaph

Return values

The value a function hands back to the code that called it, with return, so its answer can be stored, added or passed on - unlike print, which only shows it on the screen.

Depth 1 · Foundation

You can make a function return its answer instead of printing it, use a call inside a bigger expression, plug functions into each other, and recognise the None that a function without return gives back.

Sign in to prove what you know with a short quiz, see how deep you've gone, and earn XP for it.

Sign in with Google