title: Giving index number for nth largest value in list Python
body: <p>With list <code>a = [1, 2, 3, 5, 4]</code> I wish to find the index of the nth largest value. <code>function(a, 4) = 2</code> since 2 is the index of the 4th largest value. NOTE: Needs to function for lists containing 500 or more elements and works with looping.</p>