This is originally intended to be a further exploration attempt in one of the exercise problems in Launch School. Since I wanted to test my knowledge, I took the challenge and wrote an original solution. I am also training my fluency in explaining a code line-by-line, which is encouraged by Launch School. Thus, I created a detailed analysis. Before we dive into the analysis, let's do a quick summary of what this program does.
This bannerizer program takes a string as input, and outputs it within a box. For example:
print_in_box('')
+--+
| |
| |