Python program to find all indices of a number

Posted by Editorial Staff | Updated on

Question: Given an array arr of size N and an integer X. The task is to find all the indices of the integer X in the array.

Answer: In this example, we have shared Python program to find all indices of a number. Copy the below Python program and execute ti to see the output.

Program Output


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers