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.
Your code doesn't seem to work with an input list of all strings. For example ['1','s','d']. The result to this should be an empty list but I am getting ['s'] when I run your code.
Thanks, I just added it.
Couple of things:
I would add some example tests for people to use.
Also I missed the random part of the instructions (my fault) but I was able to get a correct answer by just having ghost.color default to one of the color options. Maybe test by running it multiple times and making sure there is more than one color that ends up getting assigned.
Could you give a little more information? Work for what?
This comment is hidden because it contains spoiler information about the solution
I passed the tests given but when I try to submit I get the following error:
permutations:
All permutations are returned
Traceback:
in
in reference_permutations
TypeError: permutations() takes exactly 1 argument (2 given)
I have def permutations(l): so the test must be trying to give more inputs than it should be.
"# return a sorted dictionary of letter frequency"
python dictionaries are inherently unsorted. It would probably be better to ask for a sorted list of tuples.
Thanks, updated.
Thanks, just fixed it.
Left over from copying from the tests
Thanks, updated.
Thanks, just added another.
Good point, just updated.
I'm getting the following error:
File "", line 17
import sqlite3
^
SyntaxError: invalid syntax
the error is coming from code I didn't write (I only have 14 lines)
I originally tried to import sqlite3 myself and then removed it when I saw this error. The error still happens without my import though.
For the Time Completed stat on the questions I would limit it to two decimal places (and maybe add conversion for minutes as well).
Currently it looks like this: 31685.093489151877 seconds"
I like this kata, it's nice that it has immediate real world application.
A couple comments on the set up:
Loading more items...