Mike Meyer wrote: > def my_search(another, keys, x): > new = dict() > for k in keys: > if another[k] >= x: > new[k] = another[k] > return new > BTW, this would raise exception if k is not in another.