How to Get Number of Elements in Array in Python


In this example we will show how to get the number of elements in the array in Python.

Source Code

letter = ['a', 'b', 'c', 'd']
len_letter = len(letter)
print(len_letter)

Output:

4
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments