2.6.1.2 Accessing List Items
Python Programming
You can access items in a list by referring to their index, starting from 0. Example: Access and print the second item from the list of fruits.
python
fruits = ["Mango", "Apple", "Banana"]
print(fruits [1])
# Output: AppleExplanation: The code initializes a list 'fruits' containing 'Mango', 'Apple', and 'Banana', then prints the second item, 'Apple', using the index ' 1 '.