1.1.1.0 PCEP-30-02 Practice Test Compendium – Exam Block #3

Exam block #3: Data Collections – Tuples, Dictionaries, Lists, and Strings

Study Pages

Objectives covered by the block:

PCEP 3.1 Collect and process data using lists

  • constructing vectors, indexing and slicing, the len() function, basic list methods (append(), insert(), index()) and functions (len(), sorted(), etc.), the del instruction; iterating through lists with the for loop, initializing loops; in and not in operators, list comprehensions; copying and cloning, lists in lists: matrices and cubes.

PCEP 3.2 Collect and process data using tuples

  • tuples: indexing, slicing, building, immutability; tuples vs. lists: similarities and differences, lists inside tuples and tuples inside lists.

PCEP 3.3 Collect and process data using dictionaries

  • dictionaries: building, indexing, adding and removing keys; iterating through dictionaries and their keys and values, checking the existence of keys; keys(), items() and values() methods.

PCEP 3.4 Operate with strings

  • constructing strings, indexing, slicing, immutability; escaping using the \ character; quotes and apostrophes inside strings, multi-line strings, basic string functions and methods.

Last updated