Sha256: 18c1c59cdd5f419ce39f8ad4ae19bf2a3313fd7a8895fd387f68663d897b6a84
Contents?: true
Size: 310 Bytes
Versions: 110
Compression:
Stored size: 310 Bytes
Contents
def proverb(rhyme_items): if not rhyme_items: return "" phrases = ['For want of a {0} the {1} was lost.'.format(el1, el2) for el1, el2 in zip(rhyme_items, rhyme_items[1:])] phrases.append('And all for the want of a {0}.'.format(rhyme_items[0])) return '\n'.join(phrases)
Version data entries
110 entries across 110 versions & 1 rubygems