1.

Which of the following isn’t true about main modules?(a) When a python file is directly executed, it is considered main module of a program(b) Main modules may import any number of modules(c) Special name given to main modules is: __main__(d) Other main modules can import main modulesI had been asked this question in quiz.My enquiry is from Python Modules in portion Mapping Functions and Modules of Python

Answer»

The CORRECT ANSWER is (d) Other main modules can import main modules

The explanation: Main modules are not meant to be imported into other modules.



Discussion

No Comment Found

Related InterviewSolutions