How can I count the number of elements in an array in Python?
1 2 3 4 5 6 7 |
arr1=[12,55,33,65,32,98,45,42] arr2=['Python','C#','C++','Java'] #csharp-console-examples.com print('Length of arr1 : ',len(arr1)) print('Length of arr2 : ',len(arr2)) |
Output: