What Is The Difference Between A Python Tuple And Python List?

What Is The Difference Between A Python Tuple And Python List?
Share

1 Answer

  1. A major difference between python tuple and list in python is that tuples cannot be modified (immutable) whereas lists are modifiable (mutable).
    Lists can use methods like append(), insert(), remove(), sort(), clear(), pop(), reverse(), index() and count() but tuples can only use the methods index() and count().

    • 0