I have a list of integers and I want to create a new list with all elements smaller than a given limit.
a=range(15) #example list
limit=9 #example limit
My approach to solve this problem was
[i for i in a if i < limit]
To me the beginning 'i for i in' looks pretty verbose. Is there a better implementation in Python?