is_roman_numeral¶
-
plasmapy.utils.roman.
is_roman_numeral
(s: str) → bool¶ Check whether or not a string is a valid Roman numeral.
Parameters: s (str) – The possible Roman numeral. Returns: result – True
if thestr
input is a valid Roman numeral, andFalse
if it is not.Return type: bool Raises: TypeError
– If the argument is not astr
.See also
Examples
>>> is_roman_numeral("CXVII") True >>> is_roman_numeral("42") False