[Snark] Python procedure

Stephen Paul Weber singpolyma at singpolyma.net
Fri Nov 9 01:49:23 UTC 2018


> # rule 1
> if s[0] in VOWELS or s.startswith('xr') or s.startswith('yt'):
>   return s + 'ay'

My main overall thought in this one is that it, well, isn't bad.  It's not 
the best code I've ever seen, but it encodes each rule in a mostly 
straightforward way.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://snark.badcode.rocks/pipermail/snark/attachments/20181108/9d44895d/attachment.sig>


More information about the Snark mailing list