GoConqr has a new look! Let us know what you think.

Module 3 of 3 · Text

Python Libraries

Sneha Supriya

Module: A .py file containing variables, class, definitions, statements and functions related to a particular task.

   Structure:-

         Docstrings   

          Variables and constants

           Classes

            Objects

            Statements

            Functions

 

Library is a folder containing modules.

Package is a library with __init__.py in it

 

random module: random() returns floating point number beween 0.0 and 1.0

                                 To generate random floating point number between a and b

                                    random().random()*(b-a)+a

                                 randint(a,b) generates random integer between a and b

 

urllib module lets user get http responses or import data by opening webpage using python.

urlib stands for the jk

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?