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.
Hey ! Seems like the 5th character on your result 'y' is your issue, it should equal 'v'.
Start by printing the input: https://docs.codewars.com/training/troubleshooting#print-input
Oh one small thing - it's much easier for people to assist you if you format your code properly; in future please read this doc:
https://docs.codewars.com/references/markdown/
which will tell you how to use the (easy) markdown format.
As a quick example - if you type:
```python
insert your code here - it will appear in a nice code block
```
it will be much easier to read.
Because you don't reset
palabra
value properly. Read this too: https://docs.codewars.com/training/troubleshooting#post-discourseHi - welcome to Codewars; you logic is basically correct but you are not "resetting" the value of
palabra
correctly. I recommend that you putprint(palabra)
after the linefor h in x:
and you will see that it is not behaving as it should.You just need to make a small modification based on the above observation and your code should work!