about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 150
Copyright Nick Parlante 2017 - privacy