view bin/CaT @ 5510:205c1ad1ebf7

<oerjan> ` rm canary/canary; echo chirp >canary/canary
author HackBot
date Tue, 09 Jun 2015 23:47:42 +0000
parents 7f957c1f4661
children
line wrap: on
line source

#!/usr/bin/env python
import sys
sys.stdout.write ((lambda s: "".join([(s[i].upper() if i%2==0 else s[i].lower()) for i in range(len(s)) ]))(open("/dev/stdin").read()))