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

 

dsawyer@methacton.org > reverse
prev  |  next  |  chance

phase is a string of words. Complete the function so that it returns the words in reverse order with exactly one space after each word.


reverse('Blue yellow orange red') → 'red orange yellow Blue '
reverse('SHORT one') → 'one SHORT '
reverse('HEY') → 'HEY '

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

def reverse( phrase ):

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

Difficulty: 250 Post-solution available

Copyright Nick Parlante 2017 - privacy