def WhichRegion(s):
    for province, region in province_to_region.items():
        if province in s:
            return region
    return None
If the given string contains a province name, return its region code.
dataset/ETHPy150Open j3camero/canada-election-forecast/riding_forecast.py/WhichRegion