Lists
1. Lists are mutable.
2. You can change the items of the list and their ordering.
3. List can contain different types of objects and is used to iterate objects.
4. A list occupies more memory compared to tuples.
5. Lists have variable length.
6. Syntax : [ a,h,j ]
Tuples
1. They are immutable.
2. You cannot change the items of tuples and their ordering.
3. Tuple can also contain different types of objects.
4. Tuples occupy less memory.
5. Tuples have fixed length.
6. Syntax : ( a,h,j )
Get Answers For Free
Most questions answered within 1 hours.