Skip to content

How to get first element of array in Python?

arr = ["cat", "dog", "rabbit"]
first_element = arr[0]
See also  How to get the checkbox checked value in Javafx?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.