None value returned
<p>The code below is used in a function:</p>

<pre><code>def print_query(x):
    h = open('/home/rv/data.txt', 'r')
    read = h.readlines()
    for line in read:
        return line
</code></pre>

<p>When the value "line" is retunred it should print but instead i get the value "None"</p>
