1min snip

Software Engineering Radio - the podcast for professional software developers cover image

Episode 431: Ken Youens-Clark on Learning Python

Software Engineering Radio - the podcast for professional software developers

NOTE

Using a Named Tupple in Python

In python we have lists. Lists are completely mutable. A tupple in python is an immutable list. So it's essentially a list, and you have list access just the way you have a normally. But you can't, say, pop an element toupple. You can't reorder the elements. And so a named tupple allows you to use that immutable data structure, but assign names to the slots. Instead of like getting at the zerot element, the first element, you can say, the zeroth element is the name,. The second element is, you know, the person's age, and things like that.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode