---
title: "What is the difference between a list, tuple, set and dictionary in Python?"  
description: "What is the difference between a list, tuple, set and dictionary in Python?"  
author: "Aashish Khadka"  
published: 2026-11-15  
updated: 2026-11-15  
canonical: https://www.mindstick.com/forum/163029/what-is-the-difference-between-a-list-tuple-set-and-dictionary-in-python  
category: "python"  
tags: ["python", "data structures", "list tuple set dict", "Beginners", "collections"]  
reading_time: 1 minute  

---

# What is the difference between a list, tuple, set and dictionary in Python?

I am new to Python and I never know which collection to use. Can someone explain the four main ones?

## Replies

### Reply by John Smith

- **List** `[1, 2, 3]`: ordered, changeable, allows duplicates. The everyday choice for a sequence of items.
- **Tuple** `(1, 2, 3)`: ordered but cannot be changed after creation. Good for fixed records such as coordinates, and can be used as a dictionary key.
- **Set** `{1, 2, 3}`: unordered, no duplicates, very fast membership checks (`x in s`). Great for removing duplicates and for union and intersection.
- **Dictionary** `{"name": "Asha", "age": 25}`: maps keys to values. Lookup by key is fast.

Quick guide: need order and changes, use a list. Need uniqueness, use a set. Need to look something up by a name or id, use a dict. Need a fixed bundle of values, use a tuple.

In modern Python (3.7+), dictionaries keep the order in which keys were inserted.


---

Original Source: https://www.mindstick.com/forum/163029/what-is-the-difference-between-a-list-tuple-set-and-dictionary-in-python

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
