
- Python Basic Tutorial
- Python - Home
- Python - Overview
- Python - Environment Setup
- Python - Basic Syntax
- Python - Comments
- Python - Variables
- Python - Data Types
- Python - Operators
- Python - Decision Making
- Python - Loops
- Python - Numbers
- Python - Strings
- Python - Lists
- Python - Tuples
- Python - Dictionary
- Python - Date & Time
- Python - Functions
- Python - Modules
- Python - Files I/O
- Python - Exceptions
What's the difference between lists and tuples in Python?
List and Tuple are called as sequence data types of Python. Objects of both types are comma separated collection of items not necessarily of same type. However, main difference between list and tuple is that list object is mutable whereas tuple object is immutable. Immutable object can not be modified once it is created in memory. Hence it is not possible to add, modify or remove item from tuple object. On the other hand these operations can be performed on a list.
- Related Articles
- What are the differences and similarities between tuples and lists in Python?
- How do I convert between tuples and lists in Python?
- Difference between List and Tuples in Python.
- Difference Between Del and Remove() on Lists in Python?
- Remove duplicate lists in tuples (Preserving Order) in Python
- Why does Python allow commas at the end of lists and tuples?
- What is the difference between del, remove and pop on lists in python ?
- Python program to list the difference between two lists.
- Python Program to Calculate the Symmetric Difference Between Two Lists
- Python - Maximum difference across lists
- Program to find minimum difference between two elements from two lists in Python
- Difference of two lists including duplicates in Python
- C# program to list the difference between two lists
- Python – Remove Tuples with difference greater than K
- Combining tuples in list of tuples in Python

Advertisements