First Python list index greater than x? December 31, 2022 by Tarik next(x[0] for x in enumerate(L) if x[1] > 0.7)