• ###### domingomesajrcommented on "Sentence Smash" python solution

You run the risk of an error without it.

Bro ðŸ’€

• ###### bisafanscommented on "lucky number" python solution

This comment is hidden because it contains spoiler information about the solution

• ###### armM00commented on "Count Odd Numbers below n" python solution

I thought of this when I looked at kyu level again after having a timeout error. No way you need to use algos for this level.

timeout error + 8 kyu = there's a simple brutforce

• ###### _Alka_commented on "Sentence Smash" python solution

I too was going to add .strip() to my code to take the spaces off the ends. However when I tested with just .join() it passed so I left it out

• ###### dattenborgcommented on "Determine offspring sex based on genes XX and XY chromosomes" python solution

I like it. Learned from this kata the purpose of quotes.

• ###### soida-devcommented on "21 Sticks" python solution

the problem with this one is it can return 0, which won't happen in game with 21 sticks, but making a move of 0 is bad in general.

• ###### alitarichicommented on "Count Odd Numbers below n" python solution

GOD ! there are lots of talented people in here . I would never even think of this .

• ###### 93r8fcommented on "Sentence Smash" python solution

I was going for this but couldn't figure out how to use the strip in the same line.
End up adding a second line with: return words.strip('')
:-(

• ###### DigiRon4ikcommented on "Heron's formula" python solution

I dont C/P. I am printed, dude...

• ###### AbdallahSiyabicommented on "Return the Missing Element" python solution

When I first saw this, I was like what??!! :D

• ###### Mercy Madmaskcommented on "Return a string's even characters." python solution

It's start:stop:step
Here it means start at the 2nd element (index 1 in base 0) then take every other element (step of 2).

stop is empty so default is until the end of the string.

• ###### BenoitLcommented on "Return a string's even characters." python solution

could you please explain the slicing method st[1::2] ?
Thanks

face => palm

• ###### Encription0001commented on "Sentence Smash" python solution

Best practices but... the test cases dont have trailing or leading whitespace