id/email
password
forgot password
about | help | done | prefs | create account
CodingBat code practice

Python > String-1 > make_abba
prev  |  next  |  chance

Given two strings, a and b, return the result of putting them together in the order abba, e.g. "Hi" and "Bye" returns "HiByeByeHi".

make_abba('Hi', 'Bye') → 'HiByeByeHi'
make_abba('Yo', 'Alice') → 'YoAliceAliceYo'
make_abba('x', 'y') → 'xyyx'

...Save, Compile, Run

See also Python Example Code. Python help docs: Python Strings | Python Lists | Python If Boolean


prev  |  next  |  chance   |  CodingBat  >  String-1

Forget It! -- delete my code for this problem 106.0

Copyright Nick Parlante 2006-10 - privacy