PYTHON PROGRAMMING

Python “Tuple+”: Named Tuples

Tuples are a powerful Python type — but named tuples even more so!

Marcin Kozak
Towards Data Science
25 min readJan 3, 2024

--

Named tuples join the strengths of names and tuples. Photo by Ainur Iman on Unsplash

The three most popular Python data types are the list, the dictionary, and the tuple. Lists and dictionaries are mutable, meaning that their elements can be altered after creation. Tuples, on the other hand, are immutable, so they cannot be…

--

--

A full professor, interdisciplinary researcher, data scientist, statistician, Python, R and Go developer, open-source contributor — and a devoted writer