Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

why are TUPLES even a thing?

173.5K views
•
February 23, 2023
by
NetworkChuck
YouTube video player
why are TUPLES even a thing?

TL;DR

Tuples in Python are similar to lists but immutable, making them faster and useful for storing heterogeneous data or when the data should not be changed.

Transcript

Python Tules, why are you even a thing? Because you're pretty much the same as a list. Like almost exactly the same. Watch this. Here's how I create a list and here's how you create a tule. They're exactly the same. Come on. I mean, I know to create them, I had to use a bracket to create a list. Opening, closing. Beyond that, they're the same. They... Read More

Key Insights

  • 👂 Tuples in Python are similar to lists but immutable, meaning they cannot be changed once created.
  • 💨 The immutability of tuples makes them faster than lists due to their storage structure.
  • 👥 Tuples are useful for storing heterogeneous data, where different types of data are grouped together.
  • 😒 SQL libraries in Python often use tuples to return query results.
  • ❓ Tuples can be easily unpacked to assign multiple values to separate variables.
  • ❓ Tuples do not necessarily require parentheses to be created; a comma is enough to define a tuple.
  • 👂 Tuples can be converted to lists and vice versa.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: What is the main difference between Python lists and tuples?

The main difference is that tuples are immutable, meaning they cannot be changed once created, while lists are mutable and can be modified.

Q: Why would someone choose to use tuples instead of lists?

Tuples are faster than lists because of their immutability, as they only require one block of memory for storage. Tuples are also useful for storing heterogeneous data and are commonly used in SQL libraries.

Q: Can I change the values in a tuple?

No, once a tuple is created, its values cannot be changed. Tuples are immutable and cannot be modified.

Q: How are tuples useful in SQL libraries?

SQL libraries in Python often return data in the form of tuples. Functions like "fetch one" or "fetch all" return tuples, making tuples a convenient data structure for handling SQL query results.

Key Insights:

  • Tuples in Python are similar to lists but immutable, meaning they cannot be changed once created.
  • The immutability of tuples makes them faster than lists due to their storage structure.
  • Tuples are useful for storing heterogeneous data, where different types of data are grouped together.
  • SQL libraries in Python often use tuples to return query results.
  • Tuples can be easily unpacked to assign multiple values to separate variables.
  • Tuples do not necessarily require parentheses to be created; a comma is enough to define a tuple.
  • Tuples can be converted to lists and vice versa.
  • Tuples are a valid data structure in Python but may not be as commonly used as lists.

Summary & Key Takeaways

  • Python tuples are almost identical to lists, but they are immutable, meaning they cannot be changed once created.

  • The main difference between tuples and lists is that tuples are faster due to their immutability, as they only require one block of memory for storage.

  • Tuples are useful for storing heterogeneous data, where different types of data are grouped together, and they are commonly used in SQL libraries for returning data.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from NetworkChuck 📚

what is TCP/IP and OSI? // FREE CCNA // EP 3 thumbnail
what is TCP/IP and OSI? // FREE CCNA // EP 3
NetworkChuck
you need to learn Kubernetes RIGHT NOW!! thumbnail
you need to learn Kubernetes RIGHT NOW!!
NetworkChuck
What is a SWITCH? // FREE CCNA // Day 1 thumbnail
What is a SWITCH? // FREE CCNA // Day 1
NetworkChuck
got AI anxiety? Do this RIGHT NOW! thumbnail
got AI anxiety? Do this RIGHT NOW!
NetworkChuck
BASH scripting will change your life thumbnail
BASH scripting will change your life
NetworkChuck
the hacker’s roadmap (how to get started in IT in 2025) thumbnail
the hacker’s roadmap (how to get started in IT in 2025)
NetworkChuck

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.