Standard Modules in Python

Publicado em: 15 Setembro 2020
no canal de: Vishu Natu
373
6

A module is a file containing Python definitions and statements intended for use in other Python programs.
There are many Python modules that come with Python as part of the standard library.

Modules are reusable libraries of code in Python. Python comes with many standard library modules.


We have know two modul the time module and the math module.

Creating modules:-
All we need to create a module is a text file with a .py extension on the filename:
# mymodule.py
 
def great(name):
return 'Hello ' + name + ', how are you?'

We can now use our module in both scripts and the Python shell. To do so, we must first import the module.


Nesta página do site você pode assistir ao vídeo on-line Standard Modules in Python duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Vishu Natu 15 Setembro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 373 vezes e gostou 6 espectadores. Boa visualização!