toggleCASE by thammi

while 5:
 o="";a=0
 for c in raw_input():o+=chr(ord(c)^a*32);a^=c<'a'
 print o

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page