What are modules and packages in Python?

Home Forums Software Testing Discussions What are modules and packages in Python?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25954
    jhon
    Participant
    @richards12

    Hi, I want to know What are modules and packages in Python

    #25959
    Nick
    Participant
    @nickdevelux

    Module: The module is a simple Python file that contains collections of functions and global variables and with having a .py extension file. It is an executable file and to organize all the modules we have the concept called Package in Python

     

    Regards, Nick Cooper. Develux

    #26295
    Athira
    Participant
    @athira

    A module is a file containing Python code.

    A package is like a directory containing modules and sub-packages.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Learn Exploratory TestingYou Don't want to Miss this Event

Learn the basics of Exploratory Testing in this insightful session