def compiler_version():
 version_info = subprocess.check_output(['solc', '--version'])
 match = re.search('^Version: ([0-9a-z.-]+)/', version_info, re.MULTILINE)
 if match:
  return match.group(1)

def compiler_version ( ) : version_info = subprocess . check_output ( [ 'solc' , '--version' ] ) match = re . search ( '^Version: ([0-9a-z.-]+)/' , version_info , re . MULTILINE ) if match : return match . group ( 1 )
return the version of the installed solc .