| about | help | done | prefs | create account |
Python > Warmup-1 > front_back
prev | next | chance
| Given a string, return a new string where the first and last chars have been exchanged.
front_back('code') → 'eodc' front_back('a') → 'a' front_back('ab') → 'ba' ...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 133.0
Copyright Nick Parlante 2006-10 - privacy