Advertisement
Guest User

Untitled

a guest
May 3rd, 2013
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. c=''.join(dict(zip('|{"?:<',"\['/;,")).get(x,x)for x in raw_input().lower())
  2. p=lambda b:sum(x in b for x in c)
  3. h=p('srop')>p("'wui")
  4. e="  \qwertyuiop[asdfghjkl;'/zxcvbnm,. "
  5. r=''
  6. for x in c:r+=e[e.find(x)+(-10,1)[x!="'a"[h]]*~-0**h]
  7. print'offset:',('lef','righ')[h]+'t\ntext:',r.capitalize()+'.'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement