I wrote : module=math >>> import module Traceback (most recent call last): File "<pyshell#8>", line 1, in ? import module ImportError: No module named module How to do to give the function import a variable ?