Answers for "how to get the first element of an array in python"

3

how to get first element of array in python

arr = ["cat", "dog", "rabbit"]
first_element = arr[0]
Posted by: Guest on October-01-2020

Code answers related to "how to get the first element of an array in python"

Python Answers by Framework

Browse Popular Code Answers by Language