mirror of
https://github.com/Xevion/exercism.git
synced 2025-12-06 01:14:56 -06:00
roman numeral edit
This commit is contained in:
@@ -21,7 +21,4 @@ def roman(n):
|
|||||||
best = max(numerals.keys(), key=lambda item : 0 if item > n else item)
|
best = max(numerals.keys(), key=lambda item : 0 if item > n else item)
|
||||||
n -= best
|
n -= best
|
||||||
res += numerals[best]
|
res += numerals[best]
|
||||||
return res
|
return res
|
||||||
|
|
||||||
for i in range(2950, 35000, 13):
|
|
||||||
print('{} -> {}'.format(i, roman(i)))
|
|
||||||
Reference in New Issue
Block a user