We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 064ddf1 commit 6ee41c5Copy full SHA for 6ee41c5
python/01-12/challenge01.py
@@ -20,8 +20,6 @@ def translate_nums(input: str):
20
numbers.append(input[index])
21
continue
22
for key, value in translations.items():
23
- if len(key) + index > len(input):
24
- continue
25
if input[index : index + len(key)] == key:
26
numbers.append(value)
27
0 commit comments