Contact: aviboots(AT)netvision.net.il
39,936 questions
51,873 answers
573 users
lst = ['a', 'c', 'd', 'f', ['x', 'y'], 'g', 'h', 'k'] index = lst.index(['x', 'y']) print("The index of ['x', 'y'] is: ", index) ''' run: The index of ['x', 'y'] is: 4 '''