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

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


prev  |  next  |  chance   |  CodingBat  >  Warmup-1

Forget It! -- delete my code for this problem

New just for fun
 Random User Progress Graphs
 Random Epic Graphs 133.0

Copyright Nick Parlante 2006-11 - privacy