Question: 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

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 stringl to string2 with separator in between them. return the result In [238]: Traceback (most recent call last) NotImplementedError /tmp/ipykernel_1126/2979521186.py in 1 # your code here ----> 2 raise NotImplementedError NotImplementedError: In [239]: # you can use this cell to test/execute/check your thinking (optional) In [240]: assert callable (string_concatenator) assert type (string_concatenator ('hello', 'world', assert string_concatenator ('hello', 'world', AssertionError ) ')) == str 'hello world' Traceback (most recent call last) /tmp/ipykernel_1126/2553489564.py in 11111 1 assert callable (string_concatenator) 2 assert type (string_concatenator ( 'hello', 'world', 3 assert string_concatenator ('hello', 'world', '')) == str 'hello world'
Step by Step Solution
3.48 Rating (158 Votes )
There are 3 Steps involved in it
Answer Heres a Python function called stringconcatenator that concatenates two strings w... View full answer
Get step-by-step solutions from verified subject matter experts
