Concepts·Certified Associate Python Programmer
PCAP String Methods
PCAP objective 3.3 is employ built-in string methods, and unusually it names them: capitalize, center, count, endswith, find, index, isalnum, isalpha, isdigit, islower, isspace, isupper, join, lower, lstrip, replace, rfind, rstrip, split, startswith, strip, swapcase, title, upper. This page runs every one, then the optional arguments most of them take - because that is where the answers change.
Strings in Depth Guide 11 of 25 Intermediate
- Python3.14.4
- OSUbuntu 26.04 LTS
- pip25.1.1
- TimeAbout 17 min
- Reviewed23 August 2026
Written against the versions above. None of these methods has changed in Python 3. `str` has 47 public methods in total; the objective names 24 of them, and the extras worth knowing are at the end of this page.
| 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
- guide 17 - immutability, and why every method returns a new string.
- guide 10 - comparison order, for the case methods.
-
The named list, run in one go
-
The optional arguments that change every answer
-
find against index
-
The is-family on an empty string
-
capitalize, title and swapcase on awkward input
-
Every method returns a new string
-
Three more that are useful and are not on the list
-
What the exam does with this objective