Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get first element of array in python

arr = ["cat", "dog", "rabbit"]
first_element = arr[0]
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #element #array #python
ADD COMMENT
Topic
Name
2+2 =