I have to do this in this manner for a hw question, I know there are other ways to acomplish the same thing….
X = strjoin([ "The" , "cat" ], " ")Y = strjoin([ "over" , "the" , "fence" ], " ")Z = strjoin([ X ,"jumped", Y ,"." ], " ")
"Z" has a space between the end of string "Y" and the added period, I need to remove just that space while maintaining the rest of the spaces between the other strings.
How do I get…..
"The cat jumped over the fence." % no space between "fence" and "."
Best Answer