code: def rules(self):
          
          rules = ['Passwords need to be at least {0} characters long'.format(self.__minlength)]
  
          if self.__requireUppercase:
              rules.append('have at least one uppercase letter')
          if self.__requireLowercase:
              rules.append('have at least one lowercase letter')
          if self.__requireNumber:
              rules.append('have at least one number')
          if self.__requireWildcard:
              rules.append('have at least one non alpha-number character')
  
          if len(rules) == 1:
              return rules[0]
          else:
              return ', '.join(rules[:-1]) + ' and ' + rules[-1]
docs: Returns the rules for this password based on the configured
          options.
  
          :return: <str>