SyntaxFix
Write A Post
Hire A Developer
Questions
I would suggest a very simple way:
import numpy as np l = [10, 22, 8, 8, 11] print(np.argmax(l)) print(np.argmin(l))
Hope it helps.