• ###### neutoncommented on "Insane Coloured Triangles" python solution

technically, there is no proof given here of that most important last part that (n,k)%3==0 for k!=0,n and for n==3^d, though it is not hard to deduce, yet not that obvious.

• ###### Martnartcommented on "Hello, Name or World!" python solution

Ok. I get what you mean. I didn't actually think about the fact that this explanation is basically the answer to the kata and other people would be able to read it too. I just went from the angle that he apparently solved it already and didn't really understand why the solution works. Just in that case it strikes me as rude to not give him an answer and instead refer him (not even to a specific website but) to a term that he'd have to look up himself. There is a reason why on SO the top voted answer never is 'Go look up "List Concatenation in for loops". Because it is not a good answer.

I don't mean to make any enemies here. It just struck me as pretty rude when I saw it. Thanks for the spoiler flag, I guess that was necessary. Take care

• ###### Blind4Basicscommented on "Hello, Name or World!" python solution
1. No I didn't. I pushed him in the right direction instead.
2. Spoiler flag... x/
• ###### Martnartcommented on "Hello, Name or World!" python solution

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

• ###### Blind4Basicscommented on "Hello, Name or World!" python solution

`manual notification, see above`

• ###### drooocommented on "Hello, Name or World!" python solution

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

• ###### daevy3kcommented on "What's a Perfect Power anyway?" python solution

I tried this one and it gave me time out error. Seems an inefficient way to do it?

• ###### tonylicodingcommented on "Hello, Name or World!" python solution

"_" isn't an empty string. Also, why test for None? None isn't an empty string, so why should it equal "Hello World!"? This solution returns it based off of the fact that only strings are tested. `bool("") == False`.

• ###### Blind4Basicscommented on "Hello, Name or World!" python solution
• `("_", "Hello, World!"),` -> this is wrong according to the specs. You're just expecting things that should not be according to the kata, here.
• `(None, "Hello, World!")` -> this solution will pass that test (edit: woops, no it will fail on this test. But this input is invalid anyway since there is nothing told about passing None explicitely)
• ###### ZeroPycommented on "Hello, Name or World!" python solution

All right add the last two lines to the test!
tests = (
("John", "Hello, John!"),
("aLIce", "Hello, Alice!"),
("", "Hello, World!"),
("_", "Hello, World!"),
(None, "Hello, World!")
)

• ###### Blind4Basicscommented on "Hello, Name or World!" python solution

a space isn't an empty string, so that still complies with the specs.

• ###### ZeroPycommented on "Hello, Name or World!" python solution

I believe that if the user put a space.
Then this is an empty string, and the conditions are not met.
We get "Hello,__!"

• ###### opittcommented on "A Simplistic TCP Finite State Machine (FSM)" python solution

My first reaction to your code was: why re?
Then I saw it. Smart. I spent longer to format the strings than you writing the regex. Clever Up!

• ###### W_2004commented on "Validate Sudoku with size `NxN`" python solution

As far as i know, the sudoku should consider no repititions in the rows, boxes and also the columns.
This code however does not consider the column checking
i would suggest that:
tranpose = `[[self.board[i][j] for i in range(n)]for j in range(n)]`
Should equal
tranpose = `[[self.board[j][i] for i in range(n)]for j in range(n)]` (j and i switched places)

Very nice.