Ad
  • Custom User Avatar

    Keep practicing! I'm alright at python too but I always use loops to do simple tasks. Keep analysing what the best answers do, and try to figure out what each part does. Then try it out yourself and google anything you don't know. The next thing you know, you're improving!

  • Custom User Avatar

    @ajgrinds:

    In summary, you can ignore it. I wrote it as optional info and as something you can use to check yourself if you're going in the right direction.

    As mentioned by @RobsonMoon, it's trivia and not a restriction of the challenge; that's the reason why I added it as Optional Extra.

    Also, as mentioned, that knowledge could be used to write your own practice tests. Indeed, one of the Kata's tests (not part of the Sample Tests), checks that the sum of combinations of lengths from 4 to 9 adds up to 389112, but that's just something internal.

  • Custom User Avatar

    That's just a bit of interesting trivia, although you could use that knowledge to write your own sample test.

  • Custom User Avatar

    I've rearranged it a couple of times, unfortunately it makes sense to me (obviously), are there any obvious reworks that would make it cleaner.

    I've removed the 31st of February unnecessary statement.

    I'll be cleaning up some of the assertions in the simpler tests to make them easier to understand (which should cover the code side of the suggestion)

    Edit: I've done some rearranging and adding of headers. Hopefully should be a little clearer now?

  • Custom User Avatar

    he's not talking about the code, but about the description (As I said below, the information is spread "all over the place", so it might be useful to rewrite it in a more structured fashion)

  • Custom User Avatar

    In regards to the test assertions, do you have any suggestions to make it more readable?

    The issue with changing the assertions is, I could update it to compare each line in the output, but in the case of issues in multiple fields it would not be clear (only the first failure would be rendered). It would also muddy the water as to the output format as it would look like a list more than a string output.

    Edit: Have added specific formatting tests, and updated the tests that are expecting a single field to be outputted correctly to only assert that line. The random tests will still use the old compare everything assertion.

  • Custom User Avatar

    Could you be more specific in regards to which of Blind4Basics issues are coming up for you as well? Each of the issues has been marked as resolved so the same issues should not be possible.

  • Default User Avatar

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