Let’s learn how to count how many zeros you have in array. There are two different Python methods you can use.
Tag: count
How to count number of zeros in Numpy array?
Let’s check how many zeros the are in your array. We will use Numpy count_nonzero function.
How to find count a char in string?
Let’s check wow to find count a char in string using Python.
Frequency and percentage of given letter in the text
I know of one more wonderful way to play with text using Python. It is a good way to learn the Python language. We will calculate a percentage in a python. The exact task is to count the frequency of a given letter in the text.
Read More “Frequency and percentage of given letter in the text” »