About 8,170,000 results
Open links in new tab
  1. python - Converting from Roman numerals to Arabic numbers

    Sep 15, 2016 · # Decodes roman numerals def get_arabic_numbers(t): # Hold the numbers in the list l = list() # The format format = 0 # Convert from roman numeral to arabic number for i in range(0, len(t)): if t[i] == 'I': l.append(int(1)) elif t[i] == 'V': l.append(int(5)) elif t[i] == 'X': l.append(int(10)) elif t[i] == 'L': l.append(int(50)) elif t[i] == 'C ...

  2. Converting Roman Numerals to integers in python

    Oct 11, 2013 · To convert to roman numerals, use roman.toRoman(myInt).

  3. python - How can i make my Arabic to roman algorithm better

    Jan 5, 2022 · I've made an arabic to roman numerals converter in python all the way by myself (havent googled a single example) def arabic_to_roman(num: int) -> str: roman_dict = {1000: 'M', 500: 'D', 100...

  4. Roman numbers to Arabic numbers Validation in Python

    Jun 22, 2022 · I want to make a Roman number converter to Arabic numbers, by giving list's of wrong Roman numbers. Is there any other validation issue in my code? Or perhaps a i am missing something? It should av...

  5. Python Roman Numeral Converter: A Step-by-Step Tutorial

    A Python Roman numeral converter works by using a simple algorithm to convert Roman numerals to Arabic numerals and vice versa. The algorithm works by first identifying the individual Roman numerals in the input string.

  6. roman-arabic-numerals · PyPI

    Mar 29, 2021 · Python Module for converting Roman numbers to Arabic and reverse ‘pip install roman-arabic-numerals’ - to install ‘from roman_arabic_numerals import conv’ - to import

  7. Roman-Arabic-and-Arabic-Roman-Converter - GitHub

    This is a program that converts Roman numerals into Arabic numbers and vice-versa. It is built with Python version 3.6.1 using IDLE 3.6.1.

  8. GitHub - adanmauri/python-roman-numerals: Python Roman Numerals

    Python Roman Numerals is a library in order to convert arabic and roman numerals. The deromanize function converts a roman numeral string to its corresponding arabic numeral integer. string: Required. The roman numeral string. Returns a integer which is the corresponding arabic number of "MMXVII": The result of num will be:

  9. python - Arabic numbers to Roman numerals and back - Code …

    Aug 16, 2016 · The code aims to convert Arabic numbers between 1 and 3999 to Roman numerals and back. Here, Roman numerals are 'well-formed', that is, no 'XM' or similar, even though I know they were occasionally used.

  10. Arabic to Roman numerals conversion(and backwards) - Python

    Aug 26, 2024 · I have been thinking on how to make a script to convert roman numerals to arabic and backwards, and after a whole day of optimizing and compressing the code, i came up with this: V={'_M': 10**6, '_C_M

  11. Some results have been removed
Refresh