Run Program ❯
Python Home
❯
Run Code
Change Orientation
# Define a list of animals animals = ["cat", "dog", "elephant", "tiger", "lion"] # Access elements using index print("First Animal:", animals[0]) # Index 0 print("Third Animal:", animals[2]) # Index 2 print("Last Animal:", animals[-1]) # Negative index