Advertisement
Peaser

nice degree man

Apr 16th, 2015
492
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. import string
  2. a=raw_input();b="if {}";c=""
  3. for d in range(10):c+="'{}' in a or ".format(d)
  4. b=b.format(c).rstrip(" or ")+":"
  5. b+="\n\tprint('nice dubs')\n"
  6. e="elif {}";d=""
  7. for f in string.ascii_lowercase:d+="'{}' in a or ".format(f)
  8. e=e.format(d).rstrip(" or ")+":"
  9. b+=e+"\n\tprint('word')\n"
  10. b+="else:\n\tprint 'both'"
  11. exec(b)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement