---------> PYTHON QUESTIONS <---------
Python sequences (OMDH)
List: ordered, mutable, duplicates, heterogeneous
Python List Properties
Ordered → Items maintain their insertion order.
a = [10, 20, 30]
print(a[0]) # 10 (first item is preserved)
Mutable → You can change, add, or remove elements after creation.
a[1] = 99
print(a) # [10, 99, 30]
Heterogeneous → Can store different data types together.
a = [1, "hello", 3.14, True]
Allows duplicates → Same value can appear multiple times.
a = [1, 2, 2, 3, 3, 3]
print(a) # [1, 2, 2, 3, 3, 3]