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 form "dice" is plural. The singular form is "die." So you don't roll a dice, you roll a die. (Admittedly, even a lot of native English speakers don't know this!)
This comment is hidden because it contains spoiler information about the solution
python new test framework is required. updated in this fork
I agree.
This looks like a cool problem, but what even does n mean?
Yes, the exercise is misleading, I got one information from the description but the test case suggests that rolling 3 times in a row loses and the rest of the cases win
But what is n? Number of sides? Friend's best score?
Why in the example do you need to roll 1 thrice in order to win (or lose)? Doesn't the highest single number win?
Please clarify some of these points, preferrably in description.
Why should it not have been a
Fraction
?Use appropriate datatypes!
Make this "But he does not know the probabilities for finding a certain number."
There is no need to introduce a variable name here, let alone a new one that is then never used again.
Don't give different variables identical names. ( An argument doesn't even need a specified name! )
Fixed.
Return value should be a tuple in python.
In python the function should return a tuple.
this is clever but can overflow.
Loading more items...