List vs Tuple in Python
Here we discuss the top 5 key differences between List and
Lists are mutable, which means that you can add, remove, or modify elements in a list after it has been created.
tuples are immutable, which means that once a tuple is created, you cannot add, remove, or modify elements within it.
Another difference between lists and tuples is their syntax. Lists use square brackets ([ ])
while tuples use parentheses (()).
lists use more memory as compared to tuple
tuple uses less memory as compared to the list
List is slower as compared to the t
tuple is faster than the list.