title: PYTHON - finding the maximum of every 10 integers in an array
body: <p>I have a large array of integers, and I need to print the maximum of every 10 integers and its corresponding index in the array as a pair. </p>
  
  <pre><code>ex. (max_value, index of max_value in array)
  </code></pre>
  
  <p>I can successfully find the maximum value and the corresponding index within the first 10 integers, however I am having trouble looping through the entire array. </p>
  
  <p>I have tried using:</p>
  
  <pre><code>a = some array of integers
  
  split = [a[i:i+10] for i in xrange(0, len(a), 10)] 
  
  for i in split:
      j = max(i) 
      k = i.index(max(i))
      print (j,k)
  </code></pre>
  
  <p>The issue with this method is that it splits my array into chunks of 10 so the max_values are correct, but the indexes are inaccurate (all of the indexes are between 0-10.) 
  I need to find a way of doing this that doesn't split my array into chunks so that the original indices are retained. I'm sure there is an easier way of looping through to find max values but I can't seem to figure it out.  </p>