Codewars expect you to return your result, not print() it
your code does not compile because your f-string literal is ill-formed: you reuse the same double-quote character (") for both the outer and inner string. you need to either escape the inner double-quotes \", or use single quotes: ' for one of the pairs
there is a problem with the first test, it told me this:
Time: 445ms Passed: 3Failed: 1Exit Code: 1
Test Results:
Fixed Tests
Basic Test Cases
'found the needle at position 3' should equal 'v 3'
Test Passed
Test Passed
Test Passed
Completed in 0.05ms
Completed in 0.10ms
checkout --->should equal 'v 3'<---, only running it by "attemp" worked
helpful comment, i couldnt see the correlation
two issues with your code:
return
your result, notprint()
it"
) for both the outer and inner string. you need to either escape the inner double-quotes\"
, or use single quotes:'
for one of the pairsVery bad test
will do, sorry
Mark your post as having spoiler content next time, please. Read this, it'll help you get started: https://docs.codewars.com/training/troubleshooting
You need to
return
your answer, notprint
it.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I agree, this needs to be listed as 9 Kata
hope u can do it other way without using find or index function by ordering the list by order a,b,c,d,e,f n use for loop for constant result
my guess would be that you edited the test code
there is a problem with the first test, it told me this:
Time: 445ms Passed: 3Failed: 1Exit Code: 1
Test Results:
Fixed Tests
Basic Test Cases
'found the needle at position 3' should equal 'v 3'
Test Passed
Test Passed
Test Passed
Completed in 0.05ms
Completed in 0.10ms
checkout --->should equal 'v 3'<---, only running it by "attemp" worked
Java:
Missing fixed tests
Should use assertion messages instead of console logging
Enabled in this fork
the random tests were just numbers.
now strings, numbers, booleans
fork python
Loading more items...