CodeWorkout X121 - X160

Score: 0 / 8.0


Exercises

0 / 1.0

Given a string, return a new string made of 3 copies of the last 2 chars of the original string. The string's length will be at least 2.

...
0 / 1.0

Given a string, return the string made of its first two chars, so the string "Hello" yields "He". If the string is shorter than length 2,...

0 / 1.0

Given two strings, word and a separator sep, return a big string made of count occurrences of the word, separated by the separator...

0 / 1.0

Given a string, count the number of words ending in 'y' or 'z'--so the 'y' in "heavy" and the 'z' in "fez" count, but not the 'y' in...