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.
Changed parameter
input
in Initial Solution toprogram_input
.No,
input
is definitely a reserved keyword. It's just that python does not raise any error if you want to override the value, but that's still a very bad habit.Afaik input is no longer a reserved keyword in python
it may have been when you commented though.
typical kata solution in python, nice one
Nice kata, pretty simple and pretty hard.
But 'input' is reserved word in Python, it'd be nice to change it.
Yep, this problem is still here. First two lines of tests should be replaced to:
bin = Alphabet['BINARY']; oct = Alphabet['OCTAL']; dec = Alphabet['DECIMAL']; hex = Alphabet['HEXA_DECIMAL'];
allow = Alphabet['ALPHA_LOWER']; alup = Alphabet['ALPHA_UPPER']; alpha = Alphabet['ALPHA']; alnum = Alphabet['ALPHA_NUMERIC'];
This comment is hidden because it contains spoiler information about the solution