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 β
Trueif thestrinput is a valid Roman numeral, andFalseif it is not.- Return type:
- Raises:
See also
Examples
>>> is_roman_numeral("CXVII") True >>> is_roman_numeral("42") False