CertGrid CertGrid
Concepts·Certified Entry-Level Python Programmer

Python Parameters and Arguments

Objective 4.2 is organise interaction between the function and its environment, and the argument side of it is the most rule-heavy part of PCEP. There are three ways to pass a value and two ways to collect extra ones; there are four different errors an argument list can produce, two of them at compile time; and there is one default value that behaves in a way nobody expects until they have seen it happen.

Functions and Scope Guide 19 of 26 Intermediate

Written against the versions above. Positional-only parameters (`/`) arrived in Python 3.8 and keyword-only parameters (`*`) in 3.0. Neither is on the PCEP syllabus and neither appears here. Everything on this page has been true since Python 3.0.

One machine, and any shell with Python 3 will do - these exams test the language, not a distribution.
Server NameIP AddressOSRolesCPURAMHDD
RUNNER01192.168.0.27Ubuntu 26.04 LTSPython 3.14.4 - the only machine this path needs2 Core4 GB50 GB

Before you start

  1. The words, because questions use them precisely

  2. Collecting the rest: *args and **kwargs

  3. Three ways a call is rejected at run time

  4. Two ways a call is rejected before anything runs

  5. The default that is evaluated once

  6. The fix, and why it is written that way

  7. What a function can and cannot change about its caller

  8. What the exam does with this objective

Official sources