Contact: aviboots(AT)netvision.net.il
39,009 questions
50,723 answers
573 users
from operator import * a = [0, 3, 1, 3, 2, 3, 4, 6, 3] b = ['x', 'b', 'a', 'z', 'c', 'a'] c = ['c++', 'python', 'php', 'java', 'php'] print(indexOf(a, 3)) print(indexOf(b, 'c')) print(indexOf(c, 'php')) ''' run: 1 4 2 '''