Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Thanks for pointing out, I'll improve it
Description does not specify if
}{><
can occur more than once, and if so how it should be handled.This means that the expected value is not well defined for inputs such as
ab}{><cd}{><ef
orab}{><cd<>{}ef
.Much better.
Fixed it!
Fixed it!
Before you publish your challenge: this solution passes all tests:
There, fixed!
Hey guys, I'm still finishing authoring this, sorry!
Codewars challenges do not use
unittest
, they use custom testing framework. You can see Python authoring guide and authoring examples for some ideas how to build tests in Python.Instructions don't match the result:
However:
What am I missing?
I can see how that result was actually derived but what's with the "158 - ord(c)" then?
Read up on how to structure your tests.
Kata is unsolvable in its current state.