def dic_range_check(dr, dv):
    for k in dv.keys():
        if (not (k in dr)):
            continue
        rng = dr[k]
        v = dv[k]
        if ((v < rng[0]) or (v > rng[1])):
            return False
    return True
def dic_range_check(dr, dv):
    for k in dv.keys():
        if (not (k in dr)):
            continue
        rng = dr[k]
        v = dv[k]
        if ((v < rng[0]) or (v > rng[1])):
            return False
    return True