Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import string
- a=raw_input();b="if {}";c=""
- for d in range(10):c+="'{}' in a or ".format(d)
- b=b.format(c).rstrip(" or ")+":"
- b+="\n\tprint('nice dubs')\n"
- e="elif {}";d=""
- for f in string.ascii_lowercase:d+="'{}' in a or ".format(f)
- e=e.format(d).rstrip(" or ")+":"
- b+=e+"\n\tprint('word')\n"
- b+="else:\n\tprint 'both'"
- exec(b)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement