CheckIO: Roman numerals

import collections import functools Symbols = collections.namedtuple( ‘Symbols’, [‘unus’, ‘quinque’, ‘decem’, ‘quinquaginta’, ‘centum’, ‘quingenti’, ‘mille’] ) symbol = Symbols(‘I’, ‘V’, ‘X’, ‘L’, ‘C’, ‘D’, ‘M’) def to_roman(digit, one, five, ten): if 0 < digit < 4: return ”.join([one for _…