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.
Cool, two good solutions for this problem. Thanks guys!
This comment is hidden because it contains spoiler information about the solution
Yeah, python re right now apparently matches the newline with $ and doesn't reject. I had to add to this solution a special condition to return False if there was a newline in the pin, kind of an ugly hack.
I tried this but it failed when the test string contains a newline.
This comment is hidden because it contains spoiler information about the solution