If the function parameter is lst you would do [i for i in lst if i > 0 ].