Robots Atlas>ROBOTS ATLAS

Python โ€” From Basics to Advanced ยท Data Collections

Tuples and Sets

Data Collections

Introduction

Tuples are immutable sequences โ€” perfect for returning multiple values and as dict keys. Sets are unordered collections of unique elements with very fast membership tests. In this lesson you learn both types and their typical operations.