how to get the first 5 value of a array in python code example Example: how to get first element of array in python arr = ["cat", "dog", "rabbit"] first_element = arr[0]