code: def fatalities_range(number):
      
      range_format = '{min_range} - {max_range}'
      more_than_format = '> {min_range}'
      ranges = [
          [0, 100],
          [100, 1000],
          [1000, 10000],
          [10000, 100000],
          [100000, float('inf')]
      ]
      for r in ranges:
          min_range = r[0]
          max_range = r[1]
  
          if max_range == float('inf'):
              return more_than_format.format(
                  min_range=add_separators(min_range))
          elif min_range <= number <= max_range:
              return range_format.format(
                  min_range=add_separators(min_range),
                  max_range=add_separators(max_range))
docs: A helper to return fatalities as a range of number.
  
      See https://github.com/inasafe/inasafe/issues/3666#issuecomment-283565297
  
      :param number: The exact number. Will be converted as a range.
      :type number: int, float
  
      :return: The range of the number.
      :rtype: str