Ad
  • Custom User Avatar

    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.

  • Custom User Avatar

    Thanks, I just added it.

  • Custom User Avatar

    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.

  • Custom User Avatar

    Could you give a little more information? Work for what?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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.

  • Custom User Avatar

    "# 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.

  • Custom User Avatar

    Thanks, updated.

  • Custom User Avatar

    Thanks, just fixed it.

    Left over from copying from the tests

  • Custom User Avatar

    Thanks, updated.

  • Custom User Avatar

    Thanks, just added another.

  • Custom User Avatar

    Good point, just updated.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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"

  • Custom User Avatar

    I like this kata, it's nice that it has immediate real world application.

    A couple comments on the set up:

    1. to comment use # instead of // for python
    2. the return statements should not end with ';'
  • Loading more items...