code: def set(self, **kwargs):
          
          for name, value in kwargs.items():
              if hasattr(self, name):
                  setattr(self, name, value)
              else:
                  raise AttributeError(
                      "{!r} object has no attribute {}".format(
                          self.__class__.__name__,
                          name))
docs: Set properties