Functions

Skip

Screen 1 of 3

A function packs code under a name. def double(x) returns x * 2, so double(21) is 42.