trishnag.wordpress.com
What is if __name__ == ‘__main__’ ?
Module is simply Python file that has .py extension. Module can contain variables, functions, classes that can be reused. In order to use module we need to import the module using import com…