Imagine I have a list
l = [12,13,14,10,13,14]
and I want to find the index from which on all items are greater than 10
(in this case it is the index 4
corresponding to 13
as the first occurence of this property).
Maybe based on this, how to do this best with Python?
my idea: create a bool list for this
[a>10 for a in l]
(which consists of True
and False
as sequence) , alternatively l>10
yields an array somehow using numpy
?