Question: Write a Python program that converts a number entered in Roman numerals to a positive integer. The program will display the Roman number entered and
Write a Python program that converts a number entered in Roman numerals to a positive integer. The program will display the Roman number entered and the converted integer value. Once the program starts, it should prompt the user to enter a Roman numeral. The program must contain at least one function, convert. The Roman numeral will be passed to the convert function as an argument. The function will perform the conversion and return the result.' The roman numeral characters & integer values provided are M: 1000, D:500, C:100, L:50, X:10, V:5, I:1.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
