SyntaxFix
Write A Post
Hire A Developer
Questions
I would use:
val, idx = min((val, idx) for (idx, val) in enumerate(my_list))
Then val will be the minimum value and idx will be its index.
val
idx