code: def firstAttr(self, *attrs):
          
          for attr in attrs:
              value = self.__dict__.get(attr)
              if value is not None:
                  return value
docs: Return the first attribute in attrs that is not None.