The code below is used in a function:
def print_query(x):
h = open('/home/rv/data.txt', 'r')
read = h.readlines()
for line in read:
return line
When the value "line" is retunred it should print but instead i get the value "None"