forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice > backWords
prev  |  next  |  chance

backWords() -- Given a String s containing only alphabetic characters and spaces, return a String t in which each word is written backwards. Word order and spacing between words should be left unchanged.

backWords('Tofu') → 'ufoT'
backWords('a b c d') → 'a b c d'
backWords('red fish blue fish') → 'der hsif eulb hsif'

...Save, Compile, Run (ctrl-enter)

def backWords(s) :

Editor font size %:
Shorter output

Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Copyright Nick Parlante 2017 - privacy