11. Python program to print the number of elements present in an array
In this program, we need to count and print the number of elements present in the array.
Some elements present in the array can be found by calculating the length of the array.
Length of above array is 5. Hence, the number of elements present in the array is 5.
Array in Python is declared as
Arrayname = [ele1, ele2, ele3,....]
Number of elements present in given array: 5
JavaTpoint offers too many high quality services. Mail us on [email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected]
Duration: 1 week to 2 week