"" is a string object. string objects have a method join(iterable), that produces a string of all elements in iterable seperated (or joined) by whatever the string object's value was.
>> "!".join(["I", "AM", "AWESOME"])
This comment is hidden because it contains spoiler information about the solution
I don't understand why the " " before ".join", can anyone explain?
I didn't know you could put all these in one line #based
but if I run "AWUBWUBBWUBC" it will return "A B C" with an extra space between A and B.
How did this code have pass test?
Yes you're supposed to do that ; it's best practice :) See the fork D:)
On your second line you need to write first = first.split() instead of just first.split() and your separator should be a space.
first = first.split()
🦆 cause multiples WUB should be replaced by only 1 space...
There are no random tests.