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.
Python strings can be repeated using the
*
operator. Here,"#"
is repeated to match the length of the masked portion ofcc
. Check out the Python tutorial.Per the Kata's definition of capital, "We will consider a, e, i, o, and u as vowels for this Kata," there are no capital vowels. You could always lowercase the string first if you like, though.
Yeah... I probably should have stripped the leading and trailing punctuation from words like you, but it was much more satisfying to just not remove '-'s. Kinda like saying, "Up yours, t-rex!"
In Python 2, both / and // perform floor division by default, so there is no error.