What is the package in python?

997    Asked by SakshiD’souza in Data Science , Asked on Jan 16, 2020
Answered by Sakshi D’souza

 The package is the combination of multiple modules and packages. You can say that in one package there would be multiple modules and by importing that package you can use all modules. Once you import any package it becomes directory which contains __init__.py file, that file could be empty but tells that directory which contains it is a package.

In python there are different packages to perform different tasks, some packages are there by default with python but if you are performing some tasks and need specific package then you can install those packages and import them in your python script book.



Your Answer

Interviews

Parent Categories