0

Hey guys, I'm taking an intro level course on Python and i need to figure out how to get roman numerals to their integer values

so far i have this...

```
romaninput = raw_input("Enter the roman numeral to convert to Arabic: ")
I = 1
V = 5
X = 10
L = 50
C = 100
D = 500
M = 1000
#first letter of roman value must be bigger than next in order to add the values
if romaninput[0] > romaninput[1]:
total =
print "The roman numeral", romaninput, "is equal to", total
#if letter is placed before a letter of greater values, subtract that amount
```

I know its not much, but I really don't know a lot about python.

Where I have "total =" I'm trying to get the roman values that the user inputs into the string to add up with a total of 3 repeating roman values. Ex: XXX = 30.

Any help would be appreciated,

Oakie