5 kyu
Probability to Win an Infinite Tennis Game
78 of 79polluxCast0r
Loading description...
Mathematics
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
COBOL Translation
Can you do Factor too?
I grant you that honour. In other words, be my guest .. ;)
Approved
Hello,
I am not able to run the game
I am getting the error Traceback (most recent call last): File "main.py", line 2, in import codewars_test as test ModuleNotFoundError: No module named 'codewars_test'
I can remove the error from the test ... but not from the validation
Make sure that Python 3.8 is selected. This kata does not work with Python 3.6.
This comment has been hidden.
The final result should be a tuple of floats.
Really great one, learned stuff about probability ... liked it though my code is, like alway, inefficent
b=d.Decimal('n')*d.Decimal('a')*d.Decimal('q') decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>] What is the error here?
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)
.This comment has been hidden.
I get the following error, eventhough I return a float result.
nvm, you expect a Tuple
.