I am currently working on something with roman numerals and it has to follow these certain rules, I gotten most of the rules, I'm currently stuck on one of these rules. I need MCXIV to be True, and VL and LLL to be false, I think my problem is round here.
previous_value = float('inf')
for char in test_case:
value = roman_numeral.get(char)
if value <= previous_value:
if value not in [1, 10, 100, 1000] or previous_value / value not in [5, 10]:
print(value)
return False
else:
previous_value = value```
This has been bugging me, and if I could get some help on finding out what is wrong, that would be greatful.
