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

 

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

x is a string that may or may not contain one or more commas. If there are no commas, then return the string "ALAS". If there is exactly one comma, then return all the characters that come after the string. If there are more than one comma, return all the characters between the first two commas. There will always be at least one character between commas.


second('red, green, blue, yellow') → ' green'
second('Umm, this looks good') → ' this looks good'
second('Poor Yorick') → 'ALAS'

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

def second( x ):

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: 150

Copyright Nick Parlante 2017 - privacy