t = (1,2,3,4,2,1) print t.index(1) == 0 print t.index(2) == 1 print t.count(1) == 2 print t.count(2) == 2 print t.count(4) == 1