I am trying to print a list of names using the following program
def search():
with open('business_ten.json') as f:
data=f.read()
jsondata=json.loads(data)
for row in jsondata['rows']:
#print row['text']
a=str(row['name'])
#print a
return a
search()
If I put the return statement , it doesnt print , but if i put the print statement it works I want the return statement to work. I want the return statement instead of the print statement