This commit is contained in:
NikolajDanger
2022-06-16 17:37:07 +02:00
parent 188047f928
commit 48e8bf97fb
13 changed files with 397 additions and 127 deletions

View File

@@ -50,7 +50,7 @@ def num_to_int(n, m):
nums = [single_num_to_int(i, m) for i in chars]
new_nums = nums.copy()
for x, num in enumerate(nums[:-3]):
if all(num == nums[x+i] for i in range(0,3)):
if all(num == nums[x+i] for i in range(0,4)):
raise Exception(n, "is not a valid roman numeral")
while True: