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 :)
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!
In the following link you can find examples and explanations what is better, when and why.
https://stackoverflow.com/questions/20969773/exponentials-in-python-xy-vs-math-powx-y#:~:text=pow%20always%20returns%20a%20float,mixed%20input%20results%20in%20float%20).
Anyone know which is better out of the below? And why?
pow(x, 2)
x ** 2
Yes.
This comment is hidden because it contains spoiler information about the solution
go to python 3.8
Nice! I managed to pass it per your recommendation - Thank you!
in if dolphin you divided by 2 the time not the speed.
So you should double the time or need correct the ()
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
Roger that - Thanks!
Read the description again, that's the easiest example of one valley.
This comment is hidden because it contains spoiler information about the solution
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 :)
When I run my code I get this error:
Can you let me know what I might be doing wrong - Thanks!
Yes, as you can see there already are 4,100 completions in Python.
``
Loading more items...