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.
hahahah nice shot
Your code fails because it checks that the password contains either a number or a special character. Special characters are not mentioned in the kata decription, only a number needs to be present.
Python3
I encountered a situation where my written solution failed one or two tests, but it was eventually accepted after clicking the submit button a few times.
Here is the case as an example that causes issues:
"=ICT,]|FIgw;%eA,LjKJ{QQ*p|v"
It looks like you are getting the assertion message
3 should equal 9
. This means that your function returned 3, but it should have returned 9. The message does not mention the input. The input for that particular test is 15. You want to make 6 pieces of toast, 15 is 9 more than 6, meaning you have to take 9 pieces of bread out of the toaster. In the case where there are 5 pieces in the toaster already, you have to add 1 to make it 6."I don't understand based on the problem's condition. Why, when there are 3 toasts, 9 are missing, if following the described logic of the problem, in the case where you have 5 toasts, only 1 is missing?"
Gigachat!