A python program to calculate the number of occurrences of a specified element in an array.
In the above Python program to calculate the number of occurrence of an element in an array, we have used buil-in function count() which will count the elemet passed inside it in the given array. Sample Output: Original array: array(‘i’, [2, 6, 4, 7, 9, 6, 12, 6, 2, 1]) Number of occurrences of the…