Data Structures - Python 3.9.7 Documentation. (N.D.) - Python Documentation. Retrieved
Data Structures - Python 3.9.7 Documentation. (N.D.) - Python Documentation. Retrieved
heterogeneous and sequential data types, meaning that they can both store any type of data that can be
The main difference between lists and tuples is that tuples are more memory efficient than lists. That is
because tuples are immutable and fixed on size. Python, when dealing with lists, must allocate an extra
memory block in case there is a need for extend the size of the list.
In conclusion, tuples are faster than lists, but they are immutable; lists require more memory, but they
References:
GeeksforGeeks. (2021, March 17). Python | Difference Between List and Tuple.
https://www.geeksforgeeks.org/python-difference-between-list-and-tuple/
Isbilen, E. (2021, January 26). Python Tuples: When to Use Them Over Lists - Towards Data
over-lists-75e443f9dcd7