Computer Science, asked by kritikamehta122, 8 months ago

What happens when python encounters an import statement in a program? What would happen if there is one more import statement for the same module, already imported in the same group?​

Answers

Answered by dishajadhav136
5

Exaplnation:

python import statement enables the user to import particular modules in the corresponding program. ... As a soon as the interpreter encounters the import statement in the particular code, it searches for the same in the local scope and imports the module, if present in the search path.

I hope it will help you

Answered by probrainsme102
0

Answer:

The import in the python programming language enables the code to call the one module in other

Explanation:

  • The import enables the developers to use the functionality of one module in other.
  • The developer can use more than one import statement in the code.
  • If the same two imports are called in the code then the second same import calls ignored by the compiler.

#SPJ2

Similar questions