VOOZH about

URL: https://www.geeksforgeeks.org/python/find-the-position-of-number-that-is-multiple-of-certain-number/

⇱ Find the position of number that is multiple of certain number - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Find the position of number that is multiple of certain number

Last Updated : 23 Jul, 2025

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().

Syntax:

numpy.argwhere(array)

Example 1: 

Sometimes we need to find the indexes of the element that are divisible by int or float number.

Output:

👁 Image

In the above example, we find the indexes of all numbers divisible by 3.

Example 2:

Output:

👁 Image

In the above example, we find the indexes of all numbers divisible by floating-point number 3.5

Comment