0
what this command is used for max_index
idk when I have to do this and why, could someone explain what it does?
3 Respuestas
+ 1
Hugo Parada there is no such command or function called max_index in Python.
Maybe that is the name of a variable you saw in someone's code.
+ 1
There is no command called "max_index". If you need to get array max index you can write: arr[-1]
Please send your code to be more specific.
0
I never heard of that function neither, I can only guess that it is a (custom-made, not pre-defined) function to return the index of the maximum value of a list:
https://code.sololearn.com/cauerDCYRTKK/?ref=app