Back
  • Qissba
  • Courses

      CBSE Class 12

      PYTHON

      Computer Science

      • Python
      • Computer System Overview
      • Computer Networks
      • society Law & Ethics
      • Data Representation
      • Boolean Logics
      Python Online Free Courses for Classes 11th and 12th
  • Blog
  • Shop
    • Cart
    • Checkout
    • My account
  • About Us
  • Contact
  • Career
Have any question?
(+91) 09897990175
qissba@gmail.com
RegisterLogin
Qissba
  • Qissba
  • Courses

      CBSE Class 12

      PYTHON

      Computer Science

      • Python
      • Computer System Overview
      • Computer Networks
      • society Law & Ethics
      • Data Representation
      • Boolean Logics
      Python Online Free Courses for Classes 11th and 12th
  • Blog
  • Shop
    • Cart
    • Checkout
    • My account
  • About Us
  • Contact
  • Career

    Computer Science

    standard-library-modules-in-python

    Standard Library Module in Python | CBSE Class 12

    • Posted by Kabeer Sahib
    • Categories Computer Science

    Standard Library Module in Python 

    In this tutorial, we shall be learning about some standard library modules in python. Before beginning the main topic, first of all we need to know about “What is a module in python”

    Table of Contents

    Toggle
    • Standard Library Module in Python 
      • What is a module in python?
    • 2. Advantages of using module in python
    • Exam Time
      • Chapter : Using Python Modules
      • structure of module in python
      • arithmetic operators
      • operators in python
      • types of operators
      • logical operators
      • membership operators
      • standard library module

    What is a module in python?

    A module in something (a, file) that contains some variable and constants some functions (predefined), objects etc.

    Standard library module in python :- A (python file) can be used in your program to get predefined functionality in your python program. Here, you need not to write any extra python code to use it in a python program.

    In order to use a module, you just need to first import that module in your program and then you can use all the functions defined in that module in your program.

    Definition: – 

    Technically we can say “a python module is a file (.py) which contains some enables and consonant functions and objects in it which can be used in other python programs by importing it”

    A module is always having some predefined python functions for use only by calling in your program after importing the module

    Example  

    in order to use functions of math module, you need to writing the import statement at the top of your python program of as follows

    import math

    New, you can use any math library’s function as by writing.

    math < function-name >

    <function-name> can use any function that is already defined in math module

    Program              

    >>> import math

    >>> math. Sort (25)

    Output     >>> 5

    2. Advantages of using module in python

    A module is a separate unit (.py file) in itself. It Facilitates the following benefits to a python program

    1. It reduces the complexity of a python program.
    2. It creates a number of well-defined documented boundaries within the program.
    3. It also can be reused in other programs without having to rewrite the same code again & again.

    For example, if someone has created a module say ‘play Audio’ to play different audio formats, coming from different sources, e.g., mp3player, FM-radio player, DVD player etc. now, while writing a different program, if someone wants to incorporate FM-radio into it, he needs not re-write the code for it. rather, he can use the FM-radio functionality from play audio module. Is not that amazing? re- usage without any re-work – well, that’s the beauty of modules.

       

    Exam Time

    Chapter : Using Python Modules


    IMPORTANT QUESTIONS : Asked in examinations of CBSE Class 12th Computer Science

                                                     
         Read more

    • structure of module in python

    • arithmetic operators

    • operators in python

    • types of operators

    • logical operators

    • membership operators

    • standard library module

    • Identifiers in python

    Tag:CBSE, class - 11, free python tutorial, Mohammad Amees, Operators in Python, python notes, qissba, qissba technologies, standard library module, types of module in python, types of modules

    • Share:
    Kabeer Sahib

    A Trained Post Graduate Teacher with 10 years of experience and working as TGT/PGT–Computer Science including good Management and administration skills with managerial positions in previous work environments

    Previous post

    Character Set in Python | CBSE - Class 12
    29 June 2022

    Next post

    Arithmetic Operators in Python | CBSE - class 12
    3 July 2022

    You may also like

    Operator Precedence & Associativity in Python | CBSE Class 11| Computer Science
    24 June 2025

    Dear Class 11th STUDENTS, ! Welcome to this tutorial of Operators in Python from your CBSE class 11 of …

    basics-of-python-programming-languages-cbse-class-11
    Basics of Python Programming Language | CBSE Class 11| Computer Science
    3 June 2025
    encoding-schemes-cbse-class-11-computer-science
    Encoding Schemes | ASCII | ISCII | Unicode | CBSE Class 11| Computer Science
    21 May 2025

    Leave A Reply Cancel reply

    You must be logged in to post a comment.

    Search

    Categories

    • Computer Science
    • Education
    • Education News
    Computer Science : Python – CBSE Class 11

    Computer Science : Python – CBSE Class 11

    ₹1,999.00Free
    Computer Science : System Overview – CBSE Class 11

    Computer Science : System Overview – CBSE Class 11

    ₹999.00Free
    Computer Science : Python – CBSE Class 12

    Computer Science : Python – CBSE Class 12

    ₹1,999.00Free

    Login with your site account

    Lost your password?

    Not a member yet? Register now

    Log in

    Copyright @ 2021 ! QISSBA EDUCATION ! .

    • Privacy
    • Terms
    • Sitemap
    • About Us

    Login with your site account

    Lost your password?

    Not a member yet? Register now

    Register a new account

    Are you a member? Login now