Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Roman Numerals solution in Clear category for Roman Numerals by JimmyCarlos
def checkio(N):
roman_string = ""
roman_string += ["","M","MM","MMM"][N//1000]; N %= 1000
roman_string += ["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","M"][N//100]; N %= 100
roman_string += ["","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","C"][N//10]; N %= 10
roman_string += ["","I","II","III","IV","V","VI","VII","VIII","IX","X"][N//1]; N %= 1
return roman_string
June 30, 2019
Comments: