Ad
  • Custom User Avatar

    Still very much a beginner, so my solutions aren't too compact yet :P

  • Custom User Avatar

    As a beginner it is amazing to see solutions like this. So much easier than what I did!

  • Custom User Avatar

    Thank you for responding so quickly! I am new to codewars (and coding in general!) and didn't see that replies are collapsed by default, otherwise I would have saw your answer to the same question below. I read through all of the solutions after I complete a Kata but didn't know they could be unlocked prior.

  • Custom User Avatar

    Also tried Python and got a Traceback error:

    TypeError: close_compare() missing 1 required positional argument: 'margin'

    I have tried checking to see if the margin variable is None or "" but the error occurs on the input line before any of the function is executed so that is no help
    I have also googled to see if there is anyway to make the function work without the 3rd argument but I am having no luck figuring it out. Any help would be appreciated!