Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Explain Python packages.

Answer Posted / nashiinformaticssolutions

A Python package is an assembly of modules arranged in a directory, usually for the purpose of managing and organizing related features. To tell Python that a directory should be handled as a package, each package includes a __init__.py file. Packages logically aggregate similar code components, such functions, classes, or variables, into distinct modules, improving code structure and reusability.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I list all files of a directory?

851


Tell me what's the process to get the home directory using ‘~' in python?

884


What does end do in python?

891


Does python have inheritance?

801


What is purpose of __init__ in class ? Is it necessary to use __init__ while creating a class ?

880


What is python used for?

908


What is the difference between .py and .pyc files?

842


What are the benefits of using python? What do you understand of pep 8?

891


What are literals in python?

984


What is with open in python?

1022


Tell me what are different ways to create an empty numpy array in python?

958


What is the latest version of python?

936


Why do arrays have a 0 in it?

866


How does python handle compile-time and run-time code checking?

924


What are the runtime errors?

909