<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/12-things-i-regret-not-knowing-earlier-about-python-lists-x6fhzandu" -->

---
title: 12+ Things I Regret Not Knowing Earlier About Python Lists
description: Learn various useful techniques to handle Python lists effectively. Discover the power of the * operator for combining and unpacking lists, the difference...
canonical: https://daily.dev/posts/12-things-i-regret-not-knowing-earlier-about-python-lists-x6fhzandu
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: 12+ Things I Regret Not Knowing Earlier About Python Lists | daily.dev
og:description: Learn various useful techniques to handle Python lists effectively. Discover the power of the * operator for combining and unpacking lists, the difference...
og:url: https://daily.dev/posts/12-things-i-regret-not-knowing-earlier-about-python-lists-x6fhzandu
og:image: https://api.daily.dev/og/posts/X6fHZAndu.png
og:image:alt: 12+ Things I Regret Not Knowing Earlier About Python Lists
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 12+ Things I Regret Not Knowing Earlier About Python Lists

**[Medium](https://daily.dev/sources/medium_js)** · 6 min read · 1235 upvotes · 43 comments

## Summary

Learn various useful techniques to handle Python lists effectively. Discover the power of the * operator for combining and unpacking lists, the difference between .sort() and sorted(), and advanced methods like list comprehensions, .insert(), and .extend(). Understand the distinct advantages and limitations of tuples compared to lists.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://zlliu.medium.com/12-things-i-regret-not-knowing-earlier-about-python-lists-a71dd8a435e2>

## Community discussion

Top comments from developers on daily.dev.

**@mohamed607** · 12 upvotes

> cool python unpacking aka destructring

**@chriscodezstuff** · 4 upvotes

> awesome

**@smithfamily42** · 2 upvotes

> Love it! Great stuff.

**@raushankumar24** · 2 upvotes

> It was useful ✨

**@juanvillalobos** · 2 upvotes

> ta piola

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python)

[View this post on daily.dev](https://daily.dev/posts/12-things-i-regret-not-knowing-earlier-about-python-lists-x6fhzandu)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"12+ Things I Regret Not Knowing Earlier About Python Lists","url":"https://daily.dev/posts/12-things-i-regret-not-knowing-earlier-about-python-lists-x6fhzandu","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/12-things-i-regret-not-knowing-earlier-about-python-lists-x6fhzandu"},"datePublished":"2024-07-28T15:21:17.593Z","dateModified":"2024-08-30T02:27:33.462Z","description":"Learn various useful techniques to handle Python lists effectively. Discover the power of the * operator for combining and unpacking lists, the difference...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/32e6e18c850f7bd7643f787c03470073?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/32e6e18c850f7bd7643f787c03470073?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Medium","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Medium","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/medium","url":"https://daily.dev/sources/medium_js"},"commentCount":43,"discussionUrl":"https://daily.dev/posts/12-things-i-regret-not-knowing-earlier-about-python-lists-x6fhzandu","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1235},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":43}],"keywords":"python","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Medium","item":"https://daily.dev/sources/medium_js"},{"@type":"ListItem","position":3,"name":"12+ Things I Regret Not Knowing Earlier About Python Lists"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/12-things-i-regret-not-knowing-earlier-about-python-lists-x6fhzandu","comment":[{"@type":"Comment","text":"cool python unpacking aka destructring","datePublished":"2024-08-04T11:30:32.084Z","url":"https://daily.dev/posts/X6fHZAndu#c-KxBOjxBgv","author":{"@type":"Person","name":"mohammed gamal","url":"https://daily.dev/mohamed607","image":"https://lh3.googleusercontent.com/a/AGNmyxaI58XpBzeR6XAWQzcvK72uqAK8f-V5JEkqAU9M=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":12}},{"@type":"Comment","text":"awesome","datePublished":"2024-08-08T13:41:52.966Z","url":"https://daily.dev/posts/X6fHZAndu#c-RBTrYwJda","author":{"@type":"Person","name":"Chris","url":"https://daily.dev/chriscodezstuff","image":"https://avatars.githubusercontent.com/u/176505987?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4}},{"@type":"Comment","text":"Love it! Great stuff.","datePublished":"2024-08-19T15:59:37.242Z","url":"https://daily.dev/posts/X6fHZAndu#c-kU9L5OpuV","author":{"@type":"Person","name":"Brad Smith","url":"https://daily.dev/smithfamily42","image":"https://avatars.githubusercontent.com/u/80090215?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"It was useful ✨","datePublished":"2024-08-15T07:05:16.940Z","url":"https://daily.dev/posts/X6fHZAndu#c-MAgxrbMDT","author":{"@type":"Person","name":"RAUSHAN KUMAR","url":"https://daily.dev/raushankumar24","image":"https://lh3.googleusercontent.com/a/ACg8ocKJIvbVDBLHnDnUfmlSnsv-xdcIn8sutvH8bx_f3AKTt1_E7Fxp=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"ta piola","datePublished":"2024-08-21T23:03:12.335Z","url":"https://daily.dev/posts/X6fHZAndu#c-gx4Oxq2mv","author":{"@type":"Person","name":"Juan Villalobos","url":"https://daily.dev/juanvillalobos","image":"https://lh3.googleusercontent.com/a/ACg8ocKiqasWqlpb5KfpTk7feGNpEzNWebTG6sf93YCaHTqOSN_D6f1_=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}}]}
```

