Articles → Python → Difference Between Tuple And List
Difference Between Tuple And List
Tuple | List |
---|
Tuples are generally used for different data types | Lists are generally used for homogeneous data types |
Tuples are immutable | Lists are mutable |
Tuples are faster than lists | Lists are slower than tuples |
Tuple takes less memory than lists | The list takes more memory than tuples |