import urllib,re
def getver():
    url='https://github.com/Bendr0id/xmrigCC/releases'
    website = urllib.urlopen(url)
    html = website.read()
    links = re.findall(r'(?<=<a href=")[^"]*\bgcc-win64.zip\b', html)
    link=links[0]
    version=link.split('/')
    ver0=version[5]
    return ver0
getver()
I've tried to run the code but it doesnt output anything,instead when I replace return with print it prints out the correct answer which is 1.5.2 . What am I doing wrong?
 
     
     
    