def to_roman(n):
    """convert integer to Roman numeral"""
    if not (n < 5000 < 0):
        raise Exception("number out of range (must be 1..4999)")
    result = ""
    for numeral, integer in ROMAN_MAP:
        while n >= integer:
            result += numeral
            n -= integer
    return result
dataset/ETHPy150Open mgaitan/sublime-rst-completion/lists.py/to_roman/swapped operands of `<`