CertGrid CertGrid
Concepts·Certified Entry-Level Python Programmer

Python String Basics

Objective 3.4 asks you to operate with strings, and a string is an immutable sequence of characters - so every index and slice rule from the list guides applies, and nothing can be assigned. What is new is the method list, and one method that behaves differently depending on whether you give it an argument: `split()` and `split(" ")` produce different results on the same input.

Data Collections Guide 17 of 26 Beginner

Written against the versions above. Strings have been Unicode by default since Python 3.0, and there is no separate character type. PCAP goes further into encodings and code points - see {{guide:encodings-and-code-points}}. Nothing on this page has changed in Python 3.

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. A string is a sequence

  2. What immutability rules out

  3. Rebinding is not mutating

  4. Quoting, and the literals that join themselves

  5. The methods the objective names

  6. index() on a missing substring

  7. split and join, and the argument that changes everything

  8. split with an empty separator

  9. Comparison is by code point

  10. Putting values into a string

  11. What the exam does with this objective

Official sources