def positive_places(f, xs):
    """Takes as arguments some function f and a list of numbers xs and returns a list
     of those-and-only-those elements x of xs for which f(x) is strictly greater than
     zero. """

    ans = []
    for x in xs:
        if f(x) > 0:
            ans.append(x)
    return ans