Specialty Digest

Global English editionLearners’ Study Dashboard — in development
The Knowledge Library for All

Online Courses / University Track / Python from Zero

Module 5 of 8

Functions

Name a piece of work once and use it again. Learn to define a function, pass values in, return a result, keep variables local and design small functions that can be tested.

  • 6 hours
  • Outcomes O5
  • Checkpoint: 80% to unlock Module 6

Big idea. A function turns a repeated job into one named, tested tool, and clear inputs and outputs keep it from breaking other code.

Outcomes served. O5 (design and use functions to organise a program).

Plan your six hours

Assumed. Modules 1 to 4: variables, decisions, loops, lists and dictionaries.

Where this topic appears in practice. A tax rule, a unit conversion and a discount all repeat across a business. A function holds each rule once, so one correction fixes every use.

Privacy. Your answers stay with you. This course does not store, collect or send anything you write or tick.