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.
This kata has possibly the most unclear desctiption I've seen. Could REALLY use some reworking.
I did the math longhand and it worked fine, but failed the third random case. The expected value was not the correct value based on doing the math long form.
Any idea why that might be?
problem was:
(ball_probability([['yellow', 'green', 'yellow', 'yellow', 'yellow', 'yellow', 'green', 'green', 'blue', 'green', 'green', 'blue', 'red'], ['green', 'blue'], False]))
I am using the full character set, not using a limited method, and using random.choice to select both the type (upper, lower, or num) and the selection within that group.
Still not working.
I believe this means that you're having too restrictive of a length of passwords - should be between 6 and 20, yours look like they are between 8 and 20.
Any idea what "Passwords use a limited characterset!" can be fixed by? My code passes all the other tests. I thought we were supposed to use a limited character set, (uppercase, lowercase, and numbers only, as per instructions)
This comment is hidden because it contains spoiler information about the solution