More Bad Input
We'll cover the following...
Now that the from_roman()
function works properly with good input, it’s time to fit in the last piece of the puzzle: making it work properly with bad input. That means finding a way to look at a string and determine if it’s a valid Roman numeral. This is inherently more difficult than validating numeric input in the to_roman()
function, but you have a ...