numberchk=(int(input(\"Enter a Roman numeral or a Decimal numeral:\" ))) def int2roman(number): numerals={1:\"I\", 4:\"IV\", 5:\"V\", 9: \"IX\", 10:\"X\", 40:\"XL\",
Check the integer type instead of matching variable with int.
int
You can check type of variable with isinstance method.