I have a while loop that returns data to a function.
while (count < int(pagecount)):
count = count + 1
request = requestGet("http://www.site.com/User.aspx?ID={0}&page={1}".format(self.userid, count))
regexdata = re.findall('REGEX" REGEX="(.*?)"', request)
return regexdata
I need to know how I can return each value back to the function the while loop is in. Also, to be more specific, the data that I'm returning is actually in a list. So maybe somehow appending the new list to the old list would be a better approach. Either way, I'm lost and I need help.
Thanks.