H2K Infosys Forum

What is the differe...
 
Notifications
Clear all

What is the difference between list and tuple in Python?

 
Member Moderator

In Python Certification Training, you’ll learn that a list is mutable, meaning you can change, add, or remove elements after creation, while a tuple is immutable, so its elements can’t be modified once defined. Lists use square brackets [], and tuples use parentheses (). Lists are better for dynamic data, while tuples are ideal for fixed, unchangeable collections, offering slightly faster performance and better memory efficiency.

Quote
Topic starter Posted : 12/08/2025 12:31 pm
Share: