How to get only even numbers from list
<pre><code>def only_evens(lst):
    """ (list of list of int) -&gt; list of list of int

    Return a list of the lists in lst that contain only even integers. 

    &gt;&gt;&gt; only_evens([[1, 2, 4], [4, 0, 6], [22, 4, 3], [2]])
    [[4, 0, 6], [2]]
    """

    even_lists = []

    for sublist in lst:
        for i in sublist:
            if i % 2 == 0:
                even_lists.append(i)
    return even_lists
</code></pre>

<p>I can't do this because it returns everything in one list[]
But how can I return sublist that consists only with even integers?</p>