trident.roman.to_roman

trident.roman.to_roman(n)[source]

Convert an integer to a Roman numeral. Only works for integers > 0.

Parameters

N

int

Integer to convert to Roman numeral

Returns

String representing the roman numeral equivalent of argument n.

Example

>>> num = to_roman(5)