code: def planetMassType(mass):
      
  
      if mass is np.nan:
          return None
  
      for massLimit, massType in planetAssumptions['massType']:
  
          if mass < massLimit:
              return massType
docs: Returns the planet masstype given the mass and using planetAssumptions['massType']