Importing Modules in python | Renaming Modules in Python | Python Programming in Hindi #63

preview_player
Показать описание
In this video, I have explained How to Import and Rename Modules in Python.
We can rename the module while importing it using the keyword.
import module_name as newname

The dir() function
The dir() built-in function returns a sorted list of strings containing the names defined by a module. The list contains the names of all the modules, variables, and functions that are defined in a module.
Ex-:
import random
print(dir(random))

Some Important Video Link:-

👍 LIKE ✍ COMMENT ✉ SHARE ❤ SUBSCRIBE
Рекомендации по теме
welcome to shbcf.ru