Skip to content

Commit 668b78a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 07721a8 commit 668b78a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conversions/roman_numerals.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def roman_to_int(roman):
2424
vals = {roman: arabic for arabic, roman in ROMAN}
2525
i, total = 0, 0
2626
while i < len(roman):
27-
if i + 1 < len(roman) and roman[i + 1] == "_":
27+
if i + 1 < len(roman) and roman[i + 1] == "_":
2828
total += vals[roman[i] + "_"]
2929
i += 2
3030
else:
@@ -52,7 +52,7 @@ def int_to_roman(number):
5252
if number == 0:
5353
break
5454
return "".join(result)
55-
55+
5656
if __name__ == "__main__":
5757
import doctest
5858
doctest.testmod()

0 commit comments

Comments
 (0)