I had typed return instead of print in the loop