view bin/CaT @ 3807:c9baee562cf2

<Taneb> learn list is a fun program that HackEgo has! Run it with `list and join the fun!
author HackBot
date Thu, 19 Sep 2013 19:36:48 +0000
parents cedbde4c8d40
children 5909a6756b89
line wrap: on
line source

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