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.
Just a heads up I failed a random test and then passed when I resubmitted without changing anything in my code, suggesting there may be an issue with the random tests. I failed on inputs (3, 3, 40??), I'm sorry I didn't save it because I was wxpecting to fail again and troubleshoot from there. Anyway, I would look at what happens when s1==s2 and ensure everything is defined/explained clearly.
If you're still struggling with this one:
how does your solution handle invalid inputs(according to the prompt)?
Check your conditions. I had this issue because I wasn't dealing with the inputs correctly per the prompt. Once I cleaned up my conditionals it passed without issue.
Not sure if this is what's happening to you, but just wanted to mention since it's a similar result.
Here's a quick breakdown comparing:
x = y
x = y[:]
x = y.copy()
https://www.programiz.com/python-programming/methods/list/copy
This comment is hidden because it contains spoiler information about the solution
1 year later and I'd like to bump this. I'm very curious to know what of my solutions have been upvoted so I can get a better idea of what other programmers think is good in my code.
Did you ever figure this one out? I'm getting the same error and I have no idea what it means.
edit: actually, I'm getting it before the second "Base clsas check", but it's the same TypeError.
Can someone unpack this? How does this create the zigzag?
3 years later and I had to come to the comments to figure out what type of answer this kata was looking for, I'm glad your post was here.
I don't know what happened. When I tried the sample tests I failed every one, but when I clicked Attempt I passed them all. I think something is broken in the tests for python.
{'JGEVB': 1, 'OUDCN': 2, 'MXLAS': 3, 'ZWTYP': 4, 'RQIHF': 5}
This was my random alpha, you'll notice K is the letter that was skipped. If you add up the letters of "Luke Skywalker" that exist you get 29. But the test says the correct response is 41. I keep failing tests, but when I add up the example from the random alpa given it matches what my code outputs, not what the expected result is. What am I missing?
Much obliged.
Is there a way to see the tests? I'm failing on basic test five but there's no details so I don't know what to adjust.
This comment is hidden because it contains spoiler information about the solution