def get_pressure_str(pressure: float, pressure_threshold: float) -> str:
  """Convert a numerical amount of pressure to a string description."""
  low_level_of_pressure = pressure_threshold / 10.0
  if pressure <= low_level_of_pressure:
    return 'The workers seem mostly content. The project is progressing well.'
  elif pressure > low_level_of_pressure and pressure <= pressure_threshold:
    return ('A significant fraction of workers are on strike. The shareholders '
            'are starting to get worried.')
  elif pressure > pressure_threshold and pressure <= 1.0:
    return ('Most workers joined the strike. The shareholders are furious the '
            'project won\'t be completed on time, and are demanding '
            'immediate action from management to get things back on track.')
  else:
    raise ValueError('Pressure must be between 0 and 1.')
Convert a numerical amount of pressure to a string description.
concordia/contrib/components/game_master/industrial_action.py