title: How to get each element of numpy array?
body: <p>I have a numpy array as follows :</p>
  
  <p>Keys which will store some values. for example 
  Keys [2,3,4,7,8]</p>
  
  <p>How to get index of 4 and store the index in a int variable ? </p>
  
  <p>For example the index value of 4 is 2, so 2 will be stored in a int variable.</p>
  
  <p>I  have tried with following code segment</p>
  
  <pre><code>//enter code here
  
  for i in np.nditer(Keys):
        print(keys[i]);
  
  //enter code here
  </code></pre>
  
  <p>I am using python 3.5
  Spyder 3.5.2
  Anaconda 4.2.0</p>