Find the position of number that is multiple of certain number
In this type of question, a number is given and we have to find the position or index of all multiples of that number. For doing this question we use a function named numpy.argwhere().
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course
Sometimes we need to find the indexes of the element that are divisible by int or float number.
In the above example, we find the indexes of all numbers divisible by 3.
In the above example, we find the indexes of all numbers divisible by floating-point number 3.5