Question: Write a function make_out_word(out, word) that takes as parameters a string out (which has an even non-zero length) and a string word and returns a
Write a function make_out_word(out, word) that takes as parameters a string out (which has an even non-zero length) and a string word and returns a new string where the string word is in the middle of the out string.
For example:
| Test | Result |
|---|---|
print(make_out_word('<<>>', 'Yay')) | <> |
print(make_out_word('[]', 'word')) | [word] |
use python
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
