How can you accomplish merging two strings?
For example, you may want to combine two multi-line strings to make ASCII art.
HEAD = \
"""
O
"""
BODY = \
r"""
/|\
/ \
"""
STICKMAN = merge(HEAD, BODY) # this function will return the merged string
STICKMAN would contain this:
O
/|\
/ \
I tried doing STICKMAN = HEAD + BODY. It ovbiously didn't work.
Any answers will be appreciated. Thanks for helping!
HEAD + BODYnot work. Besides stripping whitespace and adding a new line, it looks right to me.