nerd :P

• ###### Vraetzughtcommented on "Tribonacci Sequence" python solution

@brendanvos
Your own solution also mutates the original list passed trough the function.

Out of curiousity i tried your solution in Pycharm. I stored [1, 1, 1] in a variable x, stored 10 in varuable y, called the function with (x, y) parameters and after requested a print(x). Both the print(function) and print(x) yielded the same result.

• ###### InnocentMancommented on "Is a number prime?" python solution

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

• ###### InnocentMancommented on "Is a number prime?" python solution

I did some tests and found this one to be the quickest running of the simple and intuitive solutions.

• ###### Blind4Basicscommented on "Thinkful - Dictionary Drills: Multiple Modes" python solution

This solution iterates over the counter 3 times

That doesn't change anything, because you're using additionnal if/else logic in the loop, on your side. It's like saying that `3*N` is different of `N*3`. Additionally, python being python, the single loop with more code/branching logic is most likely slower than the 3 passes using builtins.

• ###### Sabfocommented on "Is a number prime?" python solution

You don't need else-statement after the loop in that case.

• ###### hobovskycommented on "Is a number prime?" python solution

This solution was submitted for older version of the test framework. You need to run it with python 3.6

• ###### skillabstinenzcommented on "Is a number prime?" python solution

Doh, right.
But why can't I fork and run it'?

``````Traceback (most recent call last):
File "tests.py", line 6, in <module>
@Test.describe("Basic")
NameError: name 'Test' is not defined
``````
• ###### akar-0commented on "Is a number prime?" python solution

This fails on 2.

• ###### DarkMinecommented on "Dubstep" python solution

Yeah but it's not very efficient as it uses for loops. See my solution. BTW I had initially came up with this solution but I improved before submitting.

• ###### Shneetzelcommented on "T.T.T.#2: Equal to 24" python solution

It is necessary, for example equal_to_24(55, 26, 30, 5) would give with his solution a "It's not possible!", however 26-((55+5)/30) = 24.

• ###### Charlton1commented on "Is a number prime?" python solution

This is very simple and clean!

• ###### MobulaKuhliicommented on "Fastest Code : Equal to 24" python solution

I don't see how you will, even if you skip a solution here, if it exists you'll get it later reordered because of parentheses, but feel free to prove me wrong.

• ###### brendanvoscommented on "Fastest Code : Equal to 24" python solution

If you only use one try you will skip potential returns and miss potential solutions!

• ###### flacocommented on "Fastest Code : Equal to 24" python solution

right :) i got a bit lucky apparently