Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I think this is the first test that uses a unicode marker - might want to check your solution handles unicode?
Failing test on a unicode character - probably worth mentioning that the comment marker may be unicode, especially in python as current codewars version of python (2.7) has poor unicode support. I also think quite a few people won't expect a unicode comment marker.
Python - my code works in the initial tests, but on hitting submit:
Testing with lowercase latin alphabet
Password of 'password'
Traceback:
in
in encode
NameError: global name 'key' is not defined
Are the tests initiating the test data correctly?
That was what I wondered, I just failed to find a reference to the environment set up. I'll adjust and see if I can fix. Thanks!
Finding some really weird things going with this in python. I have a script that works perfectly when run in python 3.4, but the tests retrun all sorts of strange errors. Doing a little playing I note that python here versus on the desktop executes some math slightly differently for example var = tn/n where tn=1 and n=3 as integers in python on my workstation var=0.3333333333, here it returns 0.