how to get first elements in an array in python code example
Example 1: get first element of array python
some_array[0]
Example 2: how to get first element of array in python
arr = ["cat", "dog", "rabbit"]
first_element = arr[0]
some_array[0]
arr = ["cat", "dog", "rabbit"]
first_element = arr[0]