how can you use any python program as module First create a folder and put file or program which you are going to use as module. then create another py file in that py file import our program file by simply type the command or line in head section of file import __pythonfile_name__ like this