Sha256: fdceb67376b860449e135a38c4b46819c2fe23d759917ebea4189e72f3430e55

Contents?: true

Size: 333 Bytes

Versions: 286

Compression:

Stored size: 333 Bytes

Contents

def proverb(itens, qualifier=''):
    phrases = ['For want of a {0} the {1} was lost.'.format(el1, el2)
               for el1, el2 in zip(itens, itens[1:])]
    qualifier += ' ' if qualifier else ''
    phrases.append('And all for the want of a {0}{1}.'.format(qualifier,
                   itens[0]))
    return '\n'.join(phrases)

Version data entries

286 entries across 286 versions & 1 rubygems

Version Path
trackler-2.2.1.68 tracks/python/exercises/proverb/example.py
trackler-2.2.1.67 tracks/python/exercises/proverb/example.py
trackler-2.2.1.66 tracks/python/exercises/proverb/example.py
trackler-2.2.1.65 tracks/python/exercises/proverb/example.py
trackler-2.2.1.64 tracks/python/exercises/proverb/example.py
trackler-2.2.1.63 tracks/python/exercises/proverb/example.py
trackler-2.2.1.62 tracks/python/exercises/proverb/example.py
trackler-2.2.1.61 tracks/python/exercises/proverb/example.py
trackler-2.2.1.60 tracks/python/exercises/proverb/example.py
trackler-2.2.1.59 tracks/python/exercises/proverb/example.py
trackler-2.2.1.58 tracks/python/exercises/proverb/example.py
trackler-2.2.1.57 tracks/python/exercises/proverb/example.py
trackler-2.2.1.56 tracks/python/exercises/proverb/example.py
trackler-2.2.1.55 tracks/python/exercises/proverb/example.py
trackler-2.2.1.54 tracks/python/exercises/proverb/example.py
trackler-2.2.1.53 tracks/python/exercises/proverb/example.py
trackler-2.2.1.52 tracks/python/exercises/proverb/example.py
trackler-2.2.1.51 tracks/python/exercises/proverb/example.py
trackler-2.2.1.50 tracks/python/exercises/proverb/example.py
trackler-2.2.1.49 tracks/python/exercises/proverb/example.py