¡GoConqr estrena diseño! Cuéntanos qué te parece.

Módulo 3 de 3 · Texto

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

Instrucciones

Para avanzar en el curso, envía un intento de este test. Puedes enviarlo después de la última pregunta.

Ir al módulo elegido

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?