Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Description of
$
in the docs onre
shows that it can actually be the issue.It can be checked easily simply by running following test case:
test.assert_equals(validate_pin("1234\n"),False)
. Your solution will returnTrue
and fail the test.Your solution thinks that strings with a newline at the end are valid PINs.