Okay I am having trouble changing the inputted roman numeral into arabic number so I can add them up what am I doing wrong?
I know I still have a lot to go but I cannot even get the first steps right.
I am new to python.... so the hard coding I have seen so far is not helping and most coding is from Arabic to roman but i need from Roman to Arabic.
from string import *
"I" == 1
"V" == 5
"X" == 10
"L" == 50
"C" == 100
"D" == 500
"M" == 1000
roman = upper(raw_input("Enter the roman numeral to convert to arabic: "))
"I" == 1
"V" == 5
"X" == 10
"L" == 50
"C" == 100
"D" == 500
"M" == 1000
if roman[0] > roman[1]:
arabic = roman[0] + roman[1]
print "The roman numeral",roman, "Is equal to",arabic