code: def getFullname(self):
          
  
          fn = self.getFirstname()
          mi = self.getMiddleinitial()
          md = self.getMiddlename()
          sn = self.getSurname()
          fullname = ""
          if fn or sn:
              if mi and md:
                  fullname = "%s %s %s %s" % (
                      self.getFirstname(),
                      self.getMiddleinitial(),
                      self.getMiddlename(),
                      self.getSurname())
              elif mi:
                  fullname = "%s %s %s" % (
                      self.getFirstname(),
                      self.getMiddleinitial(),
                      self.getSurname())
              elif md:
                  fullname = "%s %s %s" % (
                      self.getFirstname(),
                      self.getMiddlename(),
                      self.getSurname())
              else:
                  fullname = '%s %s' % (self.getFirstname(), self.getSurname())
          return fullname.strip()
docs: Person's Fullname