Isolved assignment using min_number index?

hi guys, let me know if my method works or not
i first found the min number’s index and then returned the length of list till min_number index
min_number index = 3
return len(a[:min_num_index])

please let me if this approach is valid.

There is nothing wrong with your approach but when you have the minimum_number index why would you return len(a[:min_num_index])…why wouldn’t you simply return that min_num_index…