Skip to content

This Python script converts Roman numerals to integers, supporting both standard and subtractive notation.

License

Notifications You must be signed in to change notification settings

KasrAskari/Convert-Roman-Numerals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Roman to Integer Converter

Overview

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).

Features

  • 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

Project Structure

  • roman_to_int.py: Main script that takes input and converts Roman numerals to integers

Technologies Used

  • Python 3

Usage

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!

License

This project is licensed under the MIT License.

About

This Python script converts Roman numerals to integers, supporting both standard and subtractive notation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages