I have an array that looks like so:
data = [{'title':'10'},{'title':'15'},{'title':'25'},{'title':'6'},{'title':'4'}]
I want to iterate through the array while simultaneously removing elements that meet a certain criteria.
for element in data:
if element['title'] > 10:
# remove element from the array
Whats the best way to do this in python?