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.
Im happy there are bots that go and help for things like this! I fixed this, it might not have updated it yet though
Hello! I am a Codewars bot, and I reviewed your kata for common authoring mistakes.
Click to see the review
Commonly occurring issues
test.assert_equalscalls are placed directly inside the function decorated with@test.describe("The Laughing Cipher")and are not wrapped in any@test.itblock. For example,test.assert_equals(laugh_encode("hi!"), "ahhahaaaahhahaahaahaaaah")is executed at describe scope instead of inside anit, which goes against the expecteddescribe/itstructure; each assertion should be moved into one or more@test.itblocks.@test.it("Fixed tests")block usestest.assert_equalswithout assertion messages and theittitle doesn't include the tested inputs. For example, calls liketest.assert_equals(laugh_encode("hi!"), "ahhahaaaahhahaahaahaaaah")give no indication of what input caused a failure when they break. Please add messages (e.g...., "Testing with 'hi!'") or include the input in theittitles so that failing cases are easier to debug.Please mind that I am not a very smart bot, and you should verify my remarks with any resources available for kata authors and translators:
#help-authoringchannel of Codewars DiscordThat's nice code. In my code I seperated the length check and will it bring you to where you started check, but after seeing your code, I realize this is more concise and still readable.
This comment is hidden because it contains spoiler information about the solution
I like how you started the output out as the hashtag on its own line. That makes it easier to read. Also, I seperated the return statements so it looks more readable, but it is definitely good to teach new Python users how to do a one line if/else return statement.