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.
Any difference with looping through
smileys
first then check membership inarr
?a
parameter is pointless if1
is always passed in as the argumentUnpublishing due to low satisfaction rating and many not fixed issues.
@eijni Thanks about the tip. I was not sure if you had to tag as a spoiler for comments also :) I'm new to this discuss board.
??????
please use spoiler flag when writing comments that may reveal solution since it's visible in discourse ~~
This comment is hidden because it contains spoiler information about the solution
i solved it the same way and now i see solutions that are very long..its a bit confusing..is there anything wrong with this kata?
Rounding prevents correct float comparision.
Return floats with max precision and compare with test.assert_approx_equals or math.isclose
When r=1 the sum of a geometric sequence is n*a, not 0.
The sequence in test case isn't a geometric sequence.
Sample test doesn't work properly, the img in the description is dead, bad
explanation of a geometric progression from my point of view.
Returning different data types is bad practice, consider changing returning
'No Solution'
for an invalid sequence toNone
(author seems to be inactive)In other words, assert_approx equals should be used instead, NOT rounding.
nice! 223
xDD
Loading more items...