Answers for "how to get first element of 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
2

Python get first element from list

list[0]
Posted by: Guest on September-12-2020

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

Python Answers by Framework

Browse Popular Code Answers by Language