I'm trying to figure out how I can take a list of integers and return all the items in that list into another list as their max value, but with their index.
So I need to be able to do this without using enumeration, lambda, numpy, or anything of that sort. It has to be really basic methods for lists. Basically, things like append, max, etc. . . If for statements are fine too.
To clarify what I'm trying to do, say I have a list: [4, 34, 0, 0, 6, 34, 1]
I want it to return [1, 5]