> ## Documentation Index
> Fetch the complete documentation index at: https://python-training.ipoint-labs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Module 7: Tuples and sets

> Use tuples for fixed sequences and sets for unique values, and know when to pick each over a list.

| | |
| - | - |
| **Exam** | PCEP-30-03 |
| **Section** | 3. Data Collections: Lists, Tuples, Sets, Dictionaries, and Strings (26% of the exam) |
| **Objectives** | 3.2.1 and 3.3.1 |
| **Exam questions** | About 2, one per objective |

By the end of this module you can do everything below. The objectives and their wording come from the [official PCEP-30-03 syllabus](https://pythoninstitute.org/pcep-exam-syllabus).

## 3.2.1 Construct, access, and use tuples effectively

* Create empty, single-element, and multi-element tuples.
* Access tuple elements using positive and negative indexes, and extract portions of tuples using slicing.
* Explain tuple immutability and compare the characteristics and common use cases of tuples and lists.
* Create nested tuples and lists by storing one collection inside another.
* Access elements within nested tuples using appropriate indexing.

## 3.3.1 Collect and process unique values using sets

* Explain the defining characteristics of the `set` data type.
* Create empty and populated sets.
* Explain why sets do not preserve positional indexing.
* Add elements to a set.
* Remove elements from a set using appropriate methods.
* Test membership using the `in` and `not in` operators.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.