0

Hello!
Now I have written a function for numbers over 3999:
if arabicnumber<=3999:
print arabToRom
else:
parenthesis=0
while (arabicnumber)>3999
arabicnumber/=1000
for i in range (parenthesis...
etc and i compare all the numbers that i write in so if i write like 5560 it pirints out ( V ) and the 560 as usual.

Now i wonder, how do i do this the other way? Which code and function? I want to write in (V) and it prints out 5000 but it doesent work.
How do i do it? Please help .

3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by woooee
0

You would have to test for "(" and then traverse (or split) to the ")". The letters in between would be divided by 1000.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.