Get Index Of Element In Array Python Definition Function Of Three