2017-03-27

posted Mar 27, 2017, 6:54 AM by Samuel Konstantinovich
Goal: Split, Join, Big Strings, and Numbers as words.

Str.split(Str2)
Str.join(list)

Big strings.

numToWords(n)

Examples:
print numToWords(0)
print numToWords(1)
print numToWords(4)
print numToWords(18)
Output:
zero
one
four
eighteen


Stage 2 Examples:
print numToWords(29)
print numToWords(42)
print numToWords(139)
twenty-nine
forty-two
one hundred and thirty-nine

Stage 3 Examples:
print numToWords(1034)
print numToWords(53134)
Output:
one thousand thirty-four
fifty-three thousand one hundred and thirty-four


Comments