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.
That's clean code.
I solved this kata, but for some reason, it's not unlocking the other solutions.
Are you sure this is a level 8 kyu? This seems much harder than a bottom-tier challenge. It's finding the area of a square within a square essentially, but regular length x width isn't working. I've been struggling with this problem for 5 hours now. I've passed the basics, but my solution doesn't scale. Maybe I'm over-thinking it. Is it just me?
Ok thanks, I think I might know the issue.
Yes, and your function is returning
None
. I'll quote myself (read the posts already here before creating your own, sometimes it helps)."None should be 6". Shouldn't the second test case be 6?
You don't provide enough information to help you with, but if I have to guess, I'd say your function is probably printing the result instead of returning it.
My code works fine in my command line, but fails simple tests in codewars. The code is exactly the same.