5 kyu

@validate_args

Description
Loading description...
Fundamentals
  • Please sign in or sign up to leave a comment.
  • trashy_incel Avatar

    missing

    from preloaded import InvalidArgument
    

    in the initial code

  • mauro-1 Avatar

    No random tests.

    Tests should use test.it and test.expect_error.

  • WillNy3 Avatar

    What is supposed to be retuned? For testing and 'Wrong argument type should raise InvalidArgument' on attempt works

    But the one with (abc, 2) gives me an error

    STDERR: Traceback: in in wrapper main.InvalidArgument:

    • kingcobra Avatar

      I'm not sure I understand your question, but here goes : if the argument is invalid, you must raise InvalidArgument (which is an error class that has been predefined for you to use). There is nothing to return in such a case.

    • WillNy3 Avatar

      Maybe there is some weird issue going on with codewars in general. It showed as passing when I got home but then wouldn't let me submit it?

  • Unnamed Avatar

    Codewars is so weird... 5 minutes ago I successfully submitted a solution in Python 3.6. Now it says python version 3.6 not supported.