Idiomatic Python : Using Named Tuples

Опубликовано: 04 Июнь 2026
на канале: MathByte Academy
1,382
75

Using named tuples is often overlooked. When tuples are viewed as data structures, rather than just "immutable lists", named tuples enable us to add semantic meaning to each element of a tuple. This makes the named tuple ideal when returning multiple values (i.e. returning a tuple of results) from a function call.

#mathbyteacademy #python

Code for this Video
================
Available in GitHub blog repo: https://github.com/fbaptiste/python-blog
Direct link: https://tinyurl.com/2p9psdna

My Python Courses
=================

Python 3 Fundamentals (introduction to Python)
https://www.udemy.com/course/python3-...

Python 3 Deep Dive (Part 1 - Functional)
https://www.udemy.com/course/python-3...

Python 3 Deep Dive (Part 2 - Iteration, Generators)
https://www.udemy.com/course/python-3...

Python 3 Deep Dive (Part 3 - Hash Maps)
https://www.udemy.com/course/python-3...

Python 3 Deep Dive (Part 4 - OOP)
https://www.udemy.com/course/python-3...