mirror of
https://github.com/Xevion/exercism.git
synced 2025-12-05 23:14:54 -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)
|
||||
n -= best
|
||||
res += numerals[best]
|
||||
return res
|
||||
|
||||
for i in range(2950, 35000, 13):
|
||||
print('{} -> {}'.format(i, roman(i)))
|
||||
return res
|
||||
Reference in New Issue
Block a user