Skip to content
Learn Python with BNHR

Module 5 · Beginner

Functions

Module 5 of Python Essentials: parameters, return values and defaults, scope, sorting with a key, lambda, map and filter, and reading a class. Its sections, its notebooks to read on the web, and the companion's solutions and explanations.

Module 5Level Beginner
On this page
  1. Overview
  2. What you do
  3. The module’s notebooks
  4. Quizzes
  5. Certification and support

You have written a function in every exercise; this module is about functions themselves: how to design one that can be used again, where its names live, how to hand a small function to another one, and how to read a class, the way Python bundles data with the functions that work on it.

  1. Defining a function: parameters, return and print, defaults
  2. Scope
  3. Functions as values: sorting with a key, lambda, map and filter
  4. Objects and classes: reading them more than writing them

The notebooks are in your course folder; here you can read them without running anything.

Quizzes

  • Check-inAt the end of the module. A short check on “Functions”, and how ready you feel; its answers show as soon as you submit.Check-in: Functions ↗

The quizzes are on BNHR Quizzes and count toward nothing. Learning on your own, a quiz opens as the self-paced one; while a training runs, it asks which training you are in.

Saved in this browser only

Certification and support

We offer additional resources, certificates, ongoing support, and other perks to those who join our instructor-led training.

Join an upcoming training to take this as an instructor-led course, or contact us to arrange one for your team or organization.

Something new

Identify results
LayerExplore a module
ModuleCharts and sharing
AboutModule 7 of Arrays & DataFrames: the chart that answers the question honestly, choosing between matplotlib, seaborn and Altair, and a small interactive marimo app. Its sections, its notebooks to read on the web, and the companion's solutions and explanations.
CourseArrays & DataFrames, free