mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-23 01:28:26 +00:00
Update roman_numerals.py
This commit is contained in:
parent
1e48591d72
commit
f5cdd52aa0
|
@ -48,7 +48,7 @@ def roman_to_int(roman: str) -> int:
|
|||
factor, number = divmod(number, arabic)
|
||||
result.append(roman * factor)
|
||||
if number == 0:
|
||||
reak
|
||||
break
|
||||
return "".join(result)
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in New Issue
Block a user