is_roman_numeral
- plasmapy.utils.roman.is_roman_numeral(s: str) bool [source]
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:
- Raises:
See also
Examples
>>> is_roman_numeral("CXVII") True >>> is_roman_numeral("42") False