view bin/CaT @ 7358:56f8ad45942b

<oerjan> le/rn spaghetti stack/A spaghetti stack is the most edible data structure.
author HackBot
date Mon, 04 Apr 2016 09:26:40 +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()))