So say I have a list like:
my_list = [12, 13, 51, 21, 22, 58, 45.1, 34.2, 56, 6, 58, 58]
So the max number in this is obviously 58, but I
I tried to do the most Pythonic way as possible
my_list = [12, 13, 51, 21, 22, 58, 45.1, 34.2, 56, 6, 58, 58]
max_indices = [i for i in range(len(my_list)) if my_list[i] == max(my_list)]
Edit: Ashwini is right. max() needs to be outside the list, so...
max_value = max(my_list)
max_indices = [i for i in range(len(my_list)) if my_list[i] == max_value]