i need to make a program that converts a number into roman numbers that range from 1-9999.
this is what i did:
number=int(raw_input("Enter the number for convertion (<10,000)->"))
nthousand= number/1000
thousand= [" ", "M", "MM", "MMM", "MMMM"]
string1000=thousand(nthousand)
nhundred= number/100
hundred=[" ", "C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCCC", "CM"]
string100=hundred[nhundred]
nten= number/10
ten= [" ", "X", "XX", "XXX", "XL", "L", "LX", "LXX", "LXXX", "XC"]
string10=ten[nten]
one= [" ", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"]
string1=one
print "My number in Roman Numeral is->", string1000, string100, string10, string1
1) how can i do 5000, 6000,7000,8000,and 9000?
2) Python said i did something wrong but i couldnt' fix it. can someone please find out teh problem for me?