def version_is_compatible(imp_version, version):
 version_parts = version.split('.')
 imp_version_parts = imp_version.split('.')
 if (int(version_parts[0]) != int(imp_version_parts[0])):
  return False
 if (int(version_parts[1]) > int(imp_version_parts[1])):
  return False
 return True

def version_is_compatible ( imp_version , version ) : version_parts = version . split ( '.' ) imp_version_parts = imp_version . split ( '.' ) if ( int ( version_parts [ 0 ] ) != int ( imp_version_parts [ 0 ] ) ) : return False if ( int ( version_parts [ 1 ] ) > int ( imp_version_parts [ 1 ] ) ) : return False return True
determine whether versions are compatible .