view bin/loudly @ 5945:f1a8b7c7ac5d

<tswett> sed -i \'s/read()/read(3)/\' bin/loudly
author HackBot
date Sat, 29 Aug 2015 22:30:22 +0000
parents de0ac7e571e8
children a06b5a4a8ae5
line wrap: on
line source

#!/usr/bin/env python
import sys, itertools
inp = sys.stdin.read(3) or sys.argv[1]
cyc = itertools.cycle(["\00304,09","\00309,04"])
print "".join(cyc.next() + c for c in inp)