venture of iit bombay vjti alumni thereforeif you want to reexecute the top-level code in moduleyou can use the reload(function the reload(function imports previously imported module again the syntax of the reload(function is this reload(module_nameheremodule_name is the name of the module you want to reload and not the string containing the module name for exampleto reload hello moduledo the following reload(hellopackages in python package is hierarchical file directory structure that defines single python application environment that consists of modules and subpackages and subsubpackagesand so on consider file pots py available in phone directory this file has following line of source code #!/usr/bin/python