Does Python have a built-in function like min() and max() except that it returns the index rather than the item?
There is no inbuilt function for that. You can just do your_list.index(min(your_list)).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With