Skip to content

Functions

Handout

Name a block of code

  • A function is named code you can use again and again.
  • Make one with def name(): and an indented body.
  • "Calling" the function by its name runs that code.

Handout

Log in or create account

IGCSE & A-Level