Find Length of Array in Python
Here you will get the program code to find length of array in python programming language. Length of array can be find out using different methods, here we will use len() function.
Program Code to Find Length of Array in Python
1 2 3 4 5 6 7 8 | # sample array my_array = [12, 78, 53, 44, 50, 46] # Find length using len function length = len(my_array) # Print length print("Length of array is :", length) |
Output
Length of array is : 6
Check out our other Python examples