• ###### Ces1kcommented on "Alan Partridge II - Apple Turnover" python solution

In the following link you can find examples and explanations what is better, when and why.

• ###### DavidJEScommented on "Alan Partridge II - Apple Turnover" python solution

Anyone know which is better out of the below? And why?

pow(x, 2)
x ** 2

Yes.

• ###### Rbaha07commented on "simple calculator " kata

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

• ###### tonylicodingcommented on "The 'if' function" kata

go to python 3.8

• ###### seraph76commented on "Holiday VI - Shark Pontoon" kata

Nice! I managed to pass it per your recommendation - Thank you!

• ###### Lsouzagitcommented on "Holiday VI - Shark Pontoon" kata

in if dolphin you divided by 2 the time not the speed.
So you should double the time or need correct the ()

• ###### FarDScommented on "Parse float" kata

Hi, I have the same error, but I figured out what's the matter. The test shows everything well, but atempt gives the same error

• ###### seraph76commented on "Counting Valleys" kata

Roger that - Thanks!

• ###### Chrono79commented on "Counting Valleys" kata

Read the description again, that's the easiest example of one valley.

Every time you go down below 0 level counts as an entry of a valley, and as you go up to 0 level from valley counts as an exit of a valley.

One passed valley is equal one entry and one exit of a valley.

``````(level 0)      (exit we are again on level 0)
(level-1)\___/
``````
• ###### seraph76commented on "Counting Valleys" kata

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

• ###### LogicalXcommented on "The 'if' function" kata

The problem isn't your solution code, it's your tests in the window on the bottom right. Check to see that you didn't change anything there besides the tests. If you can't find anything wrong with the syntax there, then copy your solution, reset the kata, and then paste it back onto the kata. That should probably fix it :)

• ###### seraph76commented on "The 'if' function" kata

When I run my code I get this error:

``````Traceback (most recent call last):
File "main.py", line 1, in <module>
from solution import *
File "/home/codewarrior/solution.py", line 1, in <module>
import codewars_test as test
ModuleNotFoundError: No module named 'codewars_test'
``````

Can you let me know what I might be doing wrong - Thanks!

• ###### Chrono79commented on "Count Odd Numbers below n" kata

Yes, as you can see there already are 4,100 completions in Python.

``