Java
Python
String-1 > make_out_word prev I next I chance
Given an "out" string length 4, such as "<<>>", and a word, return a new string where the word is in the middle of the out string, e.g. "<<word>>"
make_out_word('<<>>', 'Yay') -> '<<Yay>>'
make_out_word('<<>>', 'WooHoo') -> '<<WooHoo>>'
make_out_word('[[]]', 'word') -> '[[word]]'
Go
..Save, Compile, Run (ctrl-enter)
def make_out_word(out, word):