def is_centos_or_rhel(distribution):
 return distribution.startswith(('centos-', 'rhel-'))

def is_centos_or_rhel ( distribution ) : return distribution . startswith ( ( 'centos-' , 'rhel-' ) )
determine whether the named distribution is a version of centos or rhel .