def get_latest_versions(versions, num=1):
 versions = group_versions(versions)
 return [versions[index][0] for index in range(num)]

def get_latest_versions ( versions , num = 1 ) : versions = group_versions ( versions ) return [ versions [ index ] [ 0 ] for index in range ( num ) ]
return a list of the most recent versions for each major .