CodePlay ?

Home

Unit ยท functions

Function Forge

A function is a named piece of code you can use again. Parameters are its inputs and return hands back its answer. Good names turn a long program into a few readable steps.

0 / 7 done

  1. 1 Print or return?๐Ÿ”ฎ Predict
  2. 2 Two calls๐Ÿ‘ฃ Trace
  3. 3 Make a turn_around๐Ÿงฉ Parsons
  4. 4 Greet anyone๐Ÿ”ง Modify
  5. 5 An average that stops early๐Ÿž Debug
  6. 6 Climb the stairsโœ๏ธ Write
  7. 7 Keep it in rangeโœ๏ธ Write