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.
Hangman('E', 'everything') ==> 'e_e_______'
Random tests consistently generate cases where at least two characters are not present. In fact, most of the test cases generate strings composed of underscores ('_') with random lengths.
Problems with typography and Markdown formatting:
# heading
not###heading###
The description should say what to do about corner cases:
"_A__B"
I think the description should simply say:
A few semantics suggestions:
*delete the line 'The value is supposed to be an integer' and change the top line to be 'Your job is to return the amount of metal (an integer) needed...'
*change 'The coaches take 5 pieces of metal to make(for each) 'to 'The coaches take 5 pieces of metal each'
*I'd also suggest your two examples give different results - maybe something like 'D________' which is 48
nice easy problem
It is not clear from the description that the tests expect the output to be entirely lowercase regardless of the case of the input. I would suggest clarifying this in the description.
collor
->color
No random tests
duplicate issue
use 3.8
Why is the function called
bob
?This series converges to
e-1
.e = \sum_{k=0}^{\inf} 1/k!
starting fom0
(not1
).Main issue:
Floats have limited precision, and are unable to exactly represent all needed values (only 18 different "
e
values" can be represented).https://docs.codewars.com/authoring/kata/floating-point/
https://docs.python.org/3/tutorial/floatingpoint.html
It's better to use
Fraction
orDecimal
.Other issues:
test.assert_approx_equals
fsum
, or at least from smaller to bigger.Binary is just the number system with base 2. It is usually represented as a string in code, but thats not what makes it binary.
Loading more items...