code: def longitude(self, longitude):
          
          if not (-180 <= longitude <= 180):
              raise ValueError('longitude was {}, but has to be in [-180, 180]'
                               .format(longitude))
          self._longitude = longitude
docs: Setter for longitude.