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.
OP solved it, closing
you people are counting this!!
this works :) also made me smile , thanks! :)
:)
Thanks for your comment as it pointed me in the right direction! since starting codewars I have realised the importance of looking for patterns in test examples!
very good thinking :) nice one!
:) sorry cannot follow your theory... i need to get more clever!! :) i appreciated reading it though so thanks for that :) i just saw input(n)=10, output=9 aka 10-1 (n-1)!!
cheers for your advice and help, much appreciated :) (I have been able to get my solution, as I read another comment which pointed me in the right direction!) thanks!
You must try to find it by yourself. It's easy in Python to print stuff, control what your code does and compare it with the expected result. This can help: https://docs.codewars.com/training/troubleshooting/
My error, silly me. Thanks for pointing this out, I have reset now and can see it!
Whilst I have your attention.... please can you give me a pointer as to where I am going wrong with my code attempts?:)
You accidentally modified the sample test, it should be like this:
Modify it, or click reset to see 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
For the test 3 the input is '7979797'. You can see the basic tests just below the window where you put your code.
You can post code, You must mark it with a spoiler flag by ticking a box just below the editor, above reply/cancel. Please use format tags to format it, as explained here: https://docs.codewars.com/references/markdown/#code-block
cheers for reply, i am using python 3.8.
when i press test i pass the top 2 but fail number 3: '97777' should equal '7777'
i have tried using re.sub and str.replace.
can i show you my code? if so how do I put it on here and mark as spoiler?
Loading more items...