human
Can you show me a Python program to get number of nonzero values in array.
assistant
Here is a Python program to get number of nonzero values in array

import numpy as np

def get_nonzero_values(array):
    """Return the number of nonzero values in array"""
    return len(array[array!= 0])

# Enter the array
array = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])

# Calling the function
print((get_nonzero_values(array)))

#Example Output
# 10

#Remember to inspect code for bugs.