| about | help | done | prefs | create account |
Python > String-1 > combo_string
prev | next | chance
| Given 2 strings, a and b, return a string of the form short+long+short, with the shorter string on the outside and the longer string on the inside. The strings will not be the same length, but they may be empty (length 0).
combo_string('Hello', 'hi') → 'hiHellohi' combo_string('hi', 'Hello') → 'hiHellohi' combo_string('aaa', 'b') → 'baaab' ...Save, Compile, Run See also Python Example Code. Python help docs: Python Strings | Python Lists | Python If Boolean |
Forget It! -- delete my code for this problem 127.0
Copyright Nick Parlante 2006-10 - privacy