What is module and package in Python?



What is module and package in Python?..

Answer / Hrishikesh Kumar

In Python, a module is a file containing Python definitions and statements. A package is a directory that contains multiple Python modules and sub-packages. Modules are imported using the 'import' statement, while packages are imported using the 'import' statement followed by the name of the package.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Give the output of this example: a[3] if a=[1,4,6,7,9,66,4,94].

1 Answers  


What does eval mean in python?

1 Answers  


Explain garbage collection with python?

1 Answers  


How are arguments passed by value or by reference?

1 Answers  


What are your weaknesses examples?

1 Answers  


How do you break a while loop?

1 Answers  


How to use of return keywords in python?

1 Answers  


How do you make 3d plots/visualizations using numpy/scipy?

1 Answers  


Does python allow you to program in a structured style?

1 Answers  


What is self in oop of python?

1 Answers  


Which python course is best?

1 Answers  


How is python executed?

1 Answers  


Categories