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.
Nice twist making the case alternate reset for each word
Nice twist having a variable number of arguments to deal with!
Nice twist getting the value preceed the key in the return string
Good challenge!
This is the first time I've encoutered a challenge that needed me to address a function which potentially does not receive all of the required parameters - what an excellent twist!
Please consider including a note on the likely size of the numbers that the function should be capable of dealing with.
Thanks for responding so quickly, the link provided by Voile was particularly helpful. I could not find any non standard characters in my code.
I'd used python 3.6, on my local machine, the error occurred on the site when using language version 3.4.3, lenguage version 3.6.0 also would not run though the error was different, however the notes in Voiles link relating to issue 508, advised using language version 2.7.6, which ran and passed all of the tests first time!
Thanks once again...
This was a neat challenge, as I've used the collections library for the first time rather than ending up with nested loops.
My code runs all the sample tests on my machine, but all I get when I test the code on the site is "Unable to decode the command from the command line:
UnicodeEncodeError: 'utf-8' codec can't encode character '\udce2' in position 699: surrogates not allowed"
What does that mean?
I also got stuck with a type error, and found that I needed a test at the beginning of my code to trap cases where either array was not a list
Are the arrays provided likely to consist of multi level arrays? i.e. [16, 36,[49,121, [100,144],25], 64]
if a sequence contains both letters and numbers, (where the numbers are acting as strings, or a actual numbes) is presented, should the function return []?
Im using Python, but cannot get past test 26, it appears that this is expecting to return [] but I cannot read whats in the sequence for this test
Instructions need to include a comment on how to hanble spaces when 2 names are included, alternatively the scores dictionary needs to include a space probably with value 0.
Unless Im missing something, I believe that [452, 820, 889, 1368, 1828, 2013, 2038, 2363, 2611, 2638, 1368, 3330, 3662, 3844, 4126, 4220] should equal [452, 1272, 2161, 3529, 5357, 7370, 9408, 11771, 14382, 17020, 18388, 21718, 25380, 29224, 33350, 37570]
PYTHON 3.6
My code runs as expected on my machine, however when I try the code on the train screen I repeatedly get the following message
"The server attempted to execute your code but there was an issue with the request. This should be a rare issue. Please try running your code again. If the issue persists, please contact us."
Does any else get this issue?
My code does not mutate the original list!
Ive just changed the double quotes in the doc string to single quotes, and found that the code now runs!
Thanks.