In this case, the requirement is to have a password at least six characters long. This seems like a sensible minimum length. The value itself is entirely arbitrary, though.
Would be good to have a few more tests included by default.
Error handling could be a bit better - not easy to see where the error was being raised when I tried to (incorrectly) append one list to another.
In this case, the requirement is to have a password at least six characters long. This seems like a sensible minimum length. The value itself is entirely arbitrary, though.
Indeed!
You're welcome - I just learned about verbose regular epxressions in Python. Suddenly my head hurts a little less...
Negatives
Not clear from details that the number of dots is the distance between \n instances
Positives
I actually started reading the Discourse area to find out the solution ;-)
It would be good to have at least one test case to start with.
Some assumptions in the instructions would be good i.e. "assume that arguments are integers or floats."
Would be good to have a few more tests included by default.
Error handling could be a bit better - not easy to see where the error was being raised when I tried to (incorrectly) append one list to another.
It would be good to see on which values this test failed i.e. "-7.1 should return False, not True"