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

 

konstans@stuy.edu > breakSentence
prev  |  next  |  chance

Break sentence should return a list of the individual words of a string. Assume that there are no leading or trailing spaces and that there are never two or more spaces ajacent to eachother. (no clumps of multiple spaces)


breakSentence('') → []
breakSentence('a') → ['a']
breakSentence('a b x c') → ['a', 'b', 'x', 'c']

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

def breakSentence(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