def windchill_temp_effect_category(twc):
    """Get the category of effect associated with a given wind chill
    temperature (WCT).

    Each number (from -6 to 0) represents a certain WCT thermal sensation
    category. With categories being the following:

    * 0 = No discomfort. No risk of frostbite formost people
    * -1 = Slight increase in discomfort. Low risk of frostbite for most people
    * -2 = Risk of hypothermia if outside for long periods without adequate
      protection. Low risk of frostbite for most people
    * -3 = Risk of hypothermia if outside for long periods without adequate
      clothing or shelter from wind and cold. Increasing risk of frostbite
      for most people in 10 to 30 minutes of exposure
    * -4 = Risk of hypothermia if outside for long periods without adequate
      clothing or shelter from wind and cold. High risk of frostbite
      for most people in 5 to 10 minutes of exposure
    * -5 = Serious risk of hypothermia if outside for long periods without
      adequate clothing or shelter from wind and cold. High risk of
      frostbite for most people in 2 to 5 minutes of exposure
    * -6 = Danger! Outdoor conditions are hazardous. High risk of frostbite for
      most people in 2 minutes of exposure or less

    Args:
        twc: Wind Chill Temperature [C]

    Returns:
        category -- An integer indicating the level of warning associated with the
        heat index. Values are one of the following:

        -    0 = No discomfort
        -   -1 = Slight increase in discomfort
        -   -2 = Risk of hypothermia if outside for long periods without adequate
            protection
        -   -3 = Risk of hypothermia if outside for long periods without adequate
            clothing or shelter from wind and cold.
        -   -4 = Risk of hypothermia if outside for long periods without adequate
            clothing or shelter from wind and cold.
        -   -5 = Serious risk of hypothermia if outside for long periods without
            adequate clothing or shelter from wind and cold.
        -   -6 = Danger! Outdoor conditions are hazardous.
    """
    if twc >= 0:
        category = 0
    elif twc >= -9:
        category = -1
    elif twc >= -27:
        category = -2
    elif twc >= -39:
        category = -3
    elif twc >= -47:
        category = -4
    elif twc >= -54:
        category = -5
    else:
        category = -6
    return category
