Concepts·Certified Entry-Level Python Programmer
Python Function Definition and Calls
Objective 4.1 is decompose the code using functions, and the syntax is one keyword. What gets examined is what surrounds it: a function with no `return` returns `None`, a function must be defined before the line that *calls* it rather than before the line that mentions it, and a function name is an ordinary variable that can be overwritten - including one of the built-in ones.
Functions and Scope Guide 18 of 26 Beginner
- Python3.14.4
- OSUbuntu 26.04 LTS
- pip25.1.1
- TimeAbout 14 min
- Reviewed23 August 2026
Written against the versions above. Nothing here has changed in Python 3. Type annotations on parameters are legal and are not examined by either exam; none of this path uses them.
| Server Name | IP Address | OS | Roles | CPU | RAM | HDD |
|---|---|---|---|---|---|---|
| RUNNER01 | 192.168.0.27 | Ubuntu 26.04 LTS | Python 3.14.4 - the only machine this path needs | 2 Core | 4 GB | 50 GB |
Before you start
-
def, and what a call gives back
-
return ends the call immediately
-
A function must exist by the time it is called
-
Returning more than one value
-
A function name has no protection, not even a built-in one
-
What the exam does with this objective