List, Tuples and Dict

List are the ordered collection of items. It can store elements of different types and is mutable, meaning it's content can be changed after creation.
Some of the methods are: append(), extend(), insert(), remove(), pop(), sort(), reverse(), len()

A tuple is also an ordered collection of items that can hold different data types. Unlike lists, tuples are immutable, meaning they cannot be modified after creation. Frequently used methods: count(), index(), len()

A dictionary stores data as key-value pairs. They are mutable. The key must be immutable and unique. So valid keys are - string, integer, tuple. Methods: keys(), values(), items(), update(), pop(), clear()

List vs Tuples

Set vs Dict

"A Set is used when we need uniqueness and fast membership checks, while a Dictionary is used when we need key-value mappings with fast lookups"