Hi i have problem with 'pizza' - 'javascript' in python, all test passed but javascript no.
Mess. - Traceback (most recent call last):
File "tests.py", line 48, in
test.assert_equals(c.encode('javascript'), 'javascript')
File "/workspace/default/solution.py", line 11, in encode
zipped = zip([self.alphabet.index(i) if i.isalpha() else i for i in text],
File "/workspace/default/solution.py", line 11, in
zipped = zip([self.alphabet.index(i) if i.isalpha() else i for i in text],
ValueError: substring not found
Could anyone advise me where the problem is? In jupyter 'javascript' with key = "pizza" are 'yiuzsrzhot'.
Thanks
i get the same but in my ide it still works
Not a kata issue, that error comes from your code. Read this: https://docs.codewars.com/training/troubleshooting
Hi i have problem with 'pizza' - 'javascript' in python, all test passed but javascript no.
Mess. - Traceback (most recent call last):
File "tests.py", line 48, in
test.assert_equals(c.encode('javascript'), 'javascript')
File "/workspace/default/solution.py", line 11, in encode
zipped = zip([self.alphabet.index(i) if i.isalpha() else i for i in text],
File "/workspace/default/solution.py", line 11, in
zipped = zip([self.alphabet.index(i) if i.isalpha() else i for i in text],
ValueError: substring not found
Could anyone advise me where the problem is? In jupyter 'javascript' with key = "pizza" are 'yiuzsrzhot'.
Thanks