Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What is the difference between a list and a tuple in Python?
Answer:

The difference between a tuple and list in python is as follows:

ListTuple
The list is mutable (can be changed)A tuple is immutable (remains constant)
These lists performance is slowerTuple performance is faster when compared to lists
Syntax: list_1 = [20, ‘Mindmajix’, 30]Syntax: tup_1 = (20, ‘Mindmajix’, 30)
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook