myList = [1, 2, 3, "foo", 4, 5, True, False] print myList.index("foo") print "foo" in myList print myList.index(True) print 2 in myList