def get_aqi_description(aqi):
    """Take in an AQI, get a description"""

    # https://en.wikipedia.org/wiki/Air_quality_index
    aqi_defs = {0: {'desc': 'Good', 'color': 'Green'},
                51: {'desc': 'Moderate', 'color': 'Yellow'},
                101: {'desc': 'Unhealthy for SG', 'color': 'Orange'},
                151: {'desc': 'Unhealthy', 'color': 'Red'},
                201: {'desc': 'Very Unhealthy', 'color': 'Purple'},
                301: {'desc': 'Hazardous', 'color': 'Maroon'}}

    aqi_mins = sorted(aqi_defs.keys())
    curr_min = aqi_mins.pop(0)

    for aqi_min in aqi_mins:
        if aqi < aqi_min:
            break

        curr_min = aqi_min

    return aqi_defs[curr_min]['desc']