Python: find position of element in array

Have you thought about using Python list’s .index(value) method? It return the index in the list of where the first instance of the value passed in is found.

Leave a Comment