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 ascii value of string letter in Java?

Leave a Reply

Your email address will not be published.

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