Computer Science, asked by pankajkumar7812, 9 months ago

What should be the name of the python file that defines a module foo?

module.py
foo_module.py
module_foo.py
foo.py​

Answers

Answered by nidaeamann
2

Answer:

Option 2nd

Explanation:

Among the four options given in question statement, the correct option is second one, that is foo_module.py

A foo directory can be added in python file, by using the environment variable PYTHONPATH and then specify the python file.

For example, to add foo, one can write as;

PYTHONPATH= /foo_module.py

There is also an alternate method for adding the foo directory

For example, one can write as;

sys.path.append (foo_module.py)

Similar questions