Contact: aviboots(AT)netvision.net.il
39,939 questions
51,876 answers
573 users
lst = [43, 67, 21, 30, 18, 19] print(lst.index(21)) ''' run: 2 '''
lst = [43, 67, 21, 30, 18, 19] try: i = lst.index(190) except: i = -1 print(i) ''' run: -1 '''