Ad
  • Default User Avatar

    But you can still get float to int variances that the kata cannot account for..

  • Default User Avatar

    What the hell. This doesn't work! You get float values instead of integer values.

    How do you vote down solutions. This is broken and doesn't overcome the float to integer problem that python has and the solution has....

  • Default User Avatar

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

  • Default User Avatar

    No, at this point I'm just testing the code, which runs fine in Jupyter.
    To be clear, there is code that's running after this, I'm just trying not to spoil the solution.
    I could pass and still get the same error, it seems like.

  • Default User Avatar

    I'm getting this error no matter what I do:

    I'm simply trying to iterate through the sting, line 3 here is something like:
    for variable in range(len(string)):
    I got the same when I did this as a list complrehension.

    Traceback (most recent call last):
    File "tests.py", line 3, in
    test.assert_equals(sorted(permutations('a')), ['a']);
    TypeError: 'NoneType' object is not iterable