This is a simple Python program that converts Roman numerals into integers. It supports both standard and subtractive notation (e.g., IV = 4, IX = 9).
- Handles individual Roman numerals (I, V, X, L, C, D, M)
- Supports subtractive notation (IV, IX, XL, XC, CD, CM)
- Accepts user input for conversion
roman_to_int.py
: Main script that takes input and converts Roman numerals to integers
- Python 3
Run the script and enter a Roman numeral when prompted:
python roman_to_int.py
Example:
Enter the roman numerals you want to convert: XLII
The roman numerals you entered translate to: 42!
This project is licensed under the MIT License.