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.
More like camelcase is not convention in Python. If this person added defensive programming concepts with "#--end function" and are using camelcase, I'd say Python isn't their regular language.
This comment is hidden because it contains spoiler information about the solution
Love this one! Didn't know there was a counter from collections that could do that. It essentially provides an iterable hashtable, right?
Great solution! Don't think the strip() is necessary, and fstrings a more gracious way for prepending the hashtag at the beginning of the string. Also, as someone else mentioned below, it'd have to check if the resulting string s is of size len(s) < 140 instead of len(s) < = 140 since the description states that the final (aka with hashtag) string is of length smaller or equal to 140 characters.
Because adding an additional variable to store the final result in would require an additional line.