Produce an unexpected word

Python2.x

import re
try: re.compile("[")
except re.error, e: print e.message.split()[0]

try it


CJam

"​​‌‌​​​‌‌‌‌​​‌‌​​‌‌​‌‌‌‌​​​​‌​​​‌​‌‌‌​​​‌​​​​‌​​​‌‌​‌​​‌‌​​‌‌‌‌‌​‌​​​​​‌‌‌​​​‌‌​​​‌‌​‌‌‌‌‌‌​‌​‌‌‌​‌​‌​‌​‌‌​‌​‌‌​‌​​‌​​​‌​‌​‌‌​​​​‌​‌​‌‌​​​​‌​​‌‌​​‌​‌‌​​​​‌​​‌‌‌​​​​​‌‌‌​​‌​‌​‌​‌​​‌‌‌‌​‌‌​​​​​​‌‌​‌​​​​‌​‌‌​​‌​​‌​‌​‌‌‌‌​​‌​‌‌​‌​‌​​​‌‌‌​‌​​​‌‌​​‌‌​​‌​‌‌​‌​​‌​​‌​‌‌‌​​‌‌​​‌‌​‌​‌‌​‌‌‌​​​‌​​​​‌​‌​​‌​​​​​​‌​‌‌​​‌‌​‌​​​‌​​‌​‌":iXf&YbBB*b:c

Prints Pneumonoultramicroscopicsilicovolcanoconiosis.

Try it online. (Permalink works in Chrome. You have to copy and paste the code in some browsers.)

To understand how it works, click here to run this:

"​‎‏‌‎‌​​‎‍‌‍‌‏​‌‏‌​‏‌‏‍​‎‏‌‍​‏‏​‎‌‏‏​‍‍‏‏‏‎‍‎‏‌‌‎‍‎‏‏​‍‍‍‌‌‎‎‌‏​‎‏‏​‏‏‍‏‏‍​‌‍‌‏‏‎‍‏​‌‎‌‍‏‏‌‏​​‌​‍‏‌‍​‌‍​​‌‌‌‏​‎​​​‌‍​‏​‎‏​​​‎​‎‎‌​‏​​​‌‍‌‏‍‏‌​‌‎‏​​‌‏‎‎‎‎‌​‎​‏‏​‏‏‍‏‌​‍​‏‏​​‍‎‌‏‌‎‏‍‍‌‍‎‍‌​‍‌‎‏​‌‎‌‌‍‏‍‌​‌‍​‍‍​‏‌‏​‎‏‍​‎‎‎‍‍‌‌‏​‏​​‏‎‍‏‎‍‏​‎‏‏‍​‌‍‌​​​‍‌‌‎‎‍​‏‎‍‏‏‍‍​‍‍‌‌‏‏‍‏‌​‌‌​​‌‌​‌‍‍‎​‎‎‎‍​‌‎‌‏​‍‎​​‏​​‍‎​‏‌‍‍‎‌‌‏‏‌​‎‍‎‏‍‏‏‍‏‌‏‍‍‏‍‍‏‎‍​‎‌‏‎‍​​‎‎​‎‏‍‍‌‎‍‍‏‏‌‏‎‏​‎‍‍‍‎‍‌‎‎‌​‍‏​‌‏‏‍‎‎‏‏​‌‌‎‍‌‍‎‏‎‎‎‍‎‏‏‏‌‌‍‏‎‍‍‏‍‍​​‍‎‍‌‌‎‌‎‏‏‏‌​‎​‍‏‎‏‎‌‌‍‏‎‎‌‍​‎‏‍‍​‍‏‏‏‏‏‌‍‎‌​​​‍‏‏​‌​‎‌‏‌‎‎‍‎‍‎‏‌​‏‏‌​‏‎‍‍‏‌‎‍​‌‎‎‌​‍​‎‎‎‎‌‌‎​‎​​‏‌‍‍‌‎‍‍‏‎‎‏‍‎​‌‎‎‍‎‍​‎‎‏‎‌​‌‎‏‌‏‍‍‍‌‎‌‏‍​‍‍‍‍‍‌‌‎‍‏‎‎​​‎‎‎​‎​‏‍​​‏‎​​‍‌‌‍‌‍‎‍‍‏‏‏‎‌‏‍‏‎‎‌‍‌​‏‎‏‎‎‏‏‍‍‏‌‌‎‍‎‎‎‍‎‌​​‌‏‎‌​‏‍‍‍‌‍‏‌‌‍‌‌‎‍‌‏‍‎‍‌‏​‎‏‌​‎​‎‌‎​‌‍‌‏‎‌‌‌‌‎‍​‏​‌‌‎‌‌‏‍‎​‏‎‎‌‎‌‌‍‎‎‎‎‏‍‏‌‎‌‏‍‎​‏‍‍​​‍‎‏​‎‏​‏‎‌‍‍‏‍​‎‎‌‏‏‍‌‏‎‍‏‍‍‌‍​​‌‎‏‍‍‍​‏​‍​‏‏​‏‏‍‌‌‌‏‏‍‌‎‌‍‎‎‏​‏​‎‍‏‏‎‍​​‏​‏‎‏‌‌​​‏‍‍‍​‎​‏‌‎‍‌‏‌‏‎​‌‍‎​​‎‎​‏‌‌​‌​‏​‌​‎​‏​‎‏‌‎​‏​​​‍‌‏‏‏‌​‍‍‏​‍‌​​‎‏‍​‏‌​‏‍‌‏‏‏​‏‏‎​​​‌‎​‌​‏‎‌​‍‍‎​‏‎​‎‏‌‌‎‍‏‎‌​‎‏‌​‎‏‏‍‎‏​‌‍​‍​‍‎‎‌‎‎​‏​​‌‍‎‍‌‌‌​​‎‌‎‎‍​‏​‍‍‍​​​​‍‏‌​​​‍‎‌‌‌‍​‌‌‍‌‌‌‎‏‌‍‏‌‌‎‎‎‍‏‎​‍‌‍‏‍​‌‍‎‌‏‍‎​‎‏‎‍‎‏‎​​‏‍​‏‎​‎‏‍​​‏‎‍​‏‍‌‏‍‍‍‏‏‍‏‎​‎‌‏​‏‏‎‌‏​‍‏‎‎‌‌‏‏‍‎‏​‎‌​‌‌‎‌​‍‍​​‎‌​‍​​‏‍‎‏‎‌‍‍​‍‍‌‎​‌‏‏​​‏‌‏‍​‌‍‏‍‎‍​​‏​‏​‏‏‏‎​‎‌‏‏‍​‏‍‏‍‌‎‍‌‏‎‏‏‏‎‌‌​‏‌‍‏‌‌​‏‎‏‍​‌‏‏​‎‍‏‍‌‎‍‎‌‌‏‏‍‍‏‍‎‌‏‎‍‎‏‍‏‍‌​‌‏​‌‏‎‎‌‎‎‌‍‍‌‏‌‌‌‏‍‏‌‍‌​‏‍​‍‌​​‏‏​‌​‏‍‎‏‏‏‍‎‍‌‍‌‍‍‍‏‎‎‏‏‏‏​‌‏​‎​‏​‌‎‏‏‎‏​‍​​‍​​‍‌‏‍‏‌​​‎‍‏‌‏‏‍‏‎‌‎‍‏‍‎‍​‍‌‏‍‍‎‌‏‌​‎‎‍‎‏‎​‍​‍‍‏‏‎‍‏‎‌​‍‍‏‎​‍​‍‏‎‎‎‏‍​‏‌‌‌​‏‎‌​‎‌‍​‎‍‌‏‏‎‎​‏‌‌‍‏‏‎​‍‌​​‎‍‏‎‌‏‎‏‌‌‌​‍‍‌‍‏​‌‎‌​‏‌​​‎‍‏‌‍​‍‎​​‎​​​‌​​​​‎‎​‌‎‎‎​‎‍‏‍‍‎‏‌‌‌‍‎​​‏‎‎‍‍‍‍‏‎‌‍​​​‍‍‍‎​‎‏‌‎‏​‍‌‍‍‍‏‌​‌‌​‎​‏​‍​‍‏‏‎‎‍‎‍‌​‏‎‌​‏‏​‎​‌‎​​​​‎‏‍‌​​‎​‌‎​‏‌‌‍‍‌‎‎​‎‎‍‌​‎‍​​‍‎‍‎‌‌‍‌‌‌‌‌‏‎‏​‌‎‏‎‌‏‌‏‍‍‎‌‌‎‎‌‍​‌​​‏‍‌‎‏‍​‎‍‍‍‎‍‌‎‎​‌​‏‎‏‏‏‏‏‎‎‍‌​‏‍‎‏‎‏‍‎‌‌‌‍‌​‎‌​‌‏‎‎‎​‌​‌‎‏‏‏‌‎‌‍​‌‏‏‏‎‎‍‏‏‎‍‎‌‎‏‌‎‎‍​‌‌‌‍‏‍‏​‍‎​‍‎​‏‌‍‏​‌‍‎‏‎‎‏‌‎‌‏​‎​‍‌‍‌‎‏​‌‍‌​‏‎​​‏‏‎​​​​‍​‎‍​‏‌​‍‌‌‌​‏‏‏‏‍‍‎‍‌‌‌‍‎‎‍‏​‎‍‏‌‍‎‏‏‍‍​​‌‎​‎‌​‎‏‍‌‌‏‌‏‏‍‍​‌‎‎‏‌‍‎​‌‏‍‍‎‌‌‏‎‍​‎​‎‌‎‏​​‍​‎‌‍‍‍‏‏‌‌‏‌‌​​‍‏‌‍​‏‌‍‏‎​‏‏‏‌‍‏‌‌‎‏‍​‎​‏​‏‎‌‏‏​‌‏​‍‏‍​‎‎​‌​‎‎‎‌​‍​‍​‌‎‌‌​‍​​‏‎‏‏‎‏‏​‎‎‌‍‏‏​​​‍‌‍​‎‏‏‏‏​‏‎‏‏‌​‌‎‎​​‎‎‏​​‏‍‎‎‎‏‌‎‍‎‎‌​‌‌‌‎‌‍‎‎‍‌‍‍‌‌​‎‏‌‏‌‎​‌‎‍‍​‏‎​‏‌​​‎‎​‌​‌‌‌‏‍‍‏‎‌‏‏‏‎‎‎‍‌​‏​​‏‌‎‌‎‏‌‍‍‎‍‌‍‍‍​‍​‎‍‌‌​‍‍‏‌‌‍‏‏‍‏​‎‎‍‍‎‎‍‏​‍‎‌​‍‌‎‏‍​‏‌‍‍‎‏​​‏​‍‌​‍‍‎‏‍‎‍​​‎‌‍‎‎​‏‍‌​‌‏‏‎‌‏​‎‏‏​‎​‌‌‍‍‍‏​‌​​‌‎‍‏‎‍‌‌‏‌‌‎‌‌‍‏‍‍‏​‌‌‎‏‌‍‌‎‌‍‎​​‎​‎‍‏‌‌​​‏‎​​‏‍‏‍‏‏​‎‍‎‏‏‌​‌​‍‌‌‏‎​‎‍‍​​​​‏‍‏‏‍‍":i5f%5b5I*b' f+~

I still don't get it!

  • The first code block is actually 970 bytes long, since there are 318 zero-width characters (U+200B and 0+200C) between the two double quotes. Even with a monospaced font, these characters are completely invisible.

  • X, Y and B are variables initialized to 1, 2 and 11.

  • :iXf& casts each character to an integer (8203 or 8204) and computes the parity. This way, U+200B becomes 1 and U+200C becomes 0.

  • Yb converts the array of integers from above to an integer by considering it a base 2 number.

  • BB*b converts that integer into an array of its digits as a base 121 number.

  • The sad smiley :c casts each digit to its corresponding ASCII character.

  • The second code block is actually 6543 bytes long. It follows the same idea, but it uses the characters U+200B to U+200F, base 5 numbers and string evaluation.


Python

I don't expect any upvote (but pwease don't downvote this either - unless the net votes are above 0!), because of course I claim NO MERIT WHATSOEVER on this answer, but in my opinion, the award would go hands down to Tim Peters for this Python code...

import this

(If you've never heard about it, try it here :) )