39.7k views
5 votes
Create a function that will concatenate two strings, combining them with a specified separator. To do so, write a function called string_concatenator. This function should have the following inputs, outputs, and internal procedures: Input(s) string1 - string string2 - string separator - string Output(s) output - string Procedure(s): concatenate string1 to string2 with separator in between them. return the result

1 Answer

2 votes

Answer:

See Explaination

Step-by-step explanation:

def string_concatenator(string1, string2, separator):

return string1 + separator + string2

User Keram
by
5.4k points