"NORTH", "SOUTH", "SOUTH", "EAST", "WEST", "NORTH", "WEST": array lengths differed, expected.length=1 actual.length=7
Can you please explain to me what is the meaning of this?
I have decoded , encoded and have passed some tests.Why is there such a mistake?
test.assert_equals(c.encode('\xe3\x82\xab\xe3\x82\xbf\xe3\x82\xab\xe3\x83\x8a'), '\xe3\x82\xbf\xe3\x83\xa2\xe3\x82\xbf\xe3\x83\xaf') File "/home/codewarrior/solution.py", line 27, in encode num=new_dict[self.key[i]]%26+new_dict[text[i]] KeyError: '\xe3'
In other words,I should modify the elements of the array and return it.
"NORTH", "SOUTH", "SOUTH", "EAST", "WEST", "NORTH", "WEST": array lengths differed, expected.length=1 actual.length=7
Can you please explain to me what is the meaning of this?
I have decoded , encoded and have passed some tests.Why is there such a mistake?
test.assert_equals(c.encode('\xe3\x82\xab\xe3\x82\xbf\xe3\x82\xab\xe3\x83\x8a'), '\xe3\x82\xbf\xe3\x83\xa2\xe3\x82\xbf\xe3\x83\xaf') File "/home/codewarrior/solution.py", line 27, in encode num=new_dict[self.key[i]]%26+new_dict[text[i]] KeyError: '\xe3'
This comment is hidden because it contains spoiler information about the solution
ok,I going to try again.
python
I passed the sixth and seventh test,why did I fail in the eighth test?
This comment is hidden because it contains spoiler information about the solution