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.
it might not work on some random tests, it should be testing for final length not for length of an input
if i didn't check for final length my solution would be like... 79 instead of 85 characters long
tbh tho, I didn't use strip because this test is stupid and only uses spaces
nice, BRO
I think you just need the .replace(' ','') in the expression of the if statement. No need to make the computer do extra work there.
don't think you need strip() if your next step is replacing ' ' with ''
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.
this is hard