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.
the tests are correct. How do you expect anyone to trust your judgment here when you don't provide the input to actually prove your point? ;)
This might help: https://docs.codewars.com/training/troubleshooting/
Cheers
('Unlocked', 0, ['Locked', 'Unlocked', 'Unlocked', 'Unlocked', 'Locked', 'Unlocked', 'Locked', 'Locked', 'Locked', 'Unlocked']) should equal ('Unlocked', 1, ['Locked', 'Unlocked', 'Unlocked', 'Unlocked', 'Locked', 'Unlocked', 'Locked', 'Locked', 'Locked', 'Unlocked'])
How should output value equal 1.It should be zero.There are two test cases, I think like this which are wrong.
It would be better to put the keys in the dictionary given in the description box in string quotes
The final result should be a tuple of floats.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Really great one, learned stuff about probability ... liked it though my code is, like alway, inefficent
Strings
'n'
,'a'
,'q'
do not represent decimal numbers. If you have a variable namedn
and you want to convert it to a decimal number then writeDecimal(n)
.b=d.Decimal('n')*d.Decimal('a')*d.Decimal('q')
decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]
What is the error here?
This comment is hidden because it contains spoiler information about the solution
define "here"? (language? version?)
This comment is hidden because it contains spoiler information about the solution