Continuing the discussion from If you do a join() after a split() using the same delimiter, does this result in the original string?:
I think I’m missing something in the .join() method. If this method takes each element in the list and attaches a delmiter to it, why isn’t the delimiter following the last element on the list?
var = [“I”, “Love”, “Apples”]
is I use “" as my delimiter shouldn’t " ".join(var) return "ILoveApples” as opposed to “ILoveApples”