Using Python 2.7.
Saw that when importing the module "this", an output to the screen (interpreter) is automatically generated.
import this
It outputs some kind of text labeled as "The Zen of Python, by Tim Peters."
I am curious as how that is done. How does one have a module output, or do anything, immediately when it is imported?
[EDIT] This not a duplicate, as the referenced question is on the "ROT13" encoding being used in the module "this", and not as to how to invoke an action from an imported module.