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.
This comment is hidden because it contains spoiler information about the solution
I had the same thing :) only thing is, it doesn't make sense to import an entire module when you only need one method
it also wont work if the string is a white space... it will just return the hashtag symbol
Your code us clear. But I think the program description is the result larger than 140. The input is not. Since the input contains many spaces , the input is always larger than the result. So , although input is larger than 140 , the result may not larger than 140. So , your code does not work welll if the input is larger than 140 while the result is not.
Use spoiler flag, please.
This comment is hidden because it contains spoiler information about the solution
I also thought the same, so tested it with a string with lots of spaces and only a few characters. It returned false where it should have returned the hashtagged word.
I'm really surprised this solution even work.
This case should have been tested IMO.
That would be a
suggestion
, not anissue
.From kata details: "The size will always be positive and will only use whole numbers."
So, you don't care about 0.
How would it work if an input string contains a lot of spaces (first len(s)>140 check would give false positive)?
There's a typo in the description:
incementing
should beincrementing
.It's a typo. On description. Not a really true issue, but...
Issue not specified.
This comment is hidden because it contains spoiler information about the solution
Loading more items...