When I import a module in Python I usually proceed as follows:
from math import pi
pi
Answer -> 3.14159265
Is there any way that one could create a module that just after imported prints something?
For example:
import module
Answer -> Hello world!