I am trying to find the N biggest values from a list, and then print out their positions in the list.
If I would only focus on the max. value, it would look like this:
>>>>fr = [8,4,1,1,12]
>>>>print fr.index(max(fr))
4
However, my aim is to get an output like: 4,0,1 if it were for n=3. The 0 here shows the position of the second biggest value. REMEMBER, I am not interested in the value, but in their position!
0in input?0is the position of the2ndlargest number in the list.