9. Modules in Python and Working on __name__ || SpecialVariable (Basic)

  Рет қаралды 26

Shavan Technology

Shavan Technology

Күн бұрын

Modules in Python are files containing Python code that can be reused in other Python programs. Modules are an essential part of Python's modular programming approach, allowing you to organize code into separate files and reuse code across different projects. Importing modules is the process of bringing code from one module into another module, enabling you to access the functions, classes, and variables defined in the imported module
The special variable _name_ is a built-in variable in Python that is used to determine whether a Python script is being run as the main program or if it is being imported as a module into another script.
Modules and Special Variable (__name__) implementation is also explained with the help of a working example

Пікірлер
8. Functions (lambda, Built in etc) in Python || Pycharm (Basic)
14:41
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 1,6 МЛН
Apple peeling hack @scottsreality
00:37
_vector_
Рет қаралды 127 МЛН
Teaching a Toddler Household Habits: Diaper Disposal & Potty Training #shorts
00:16
threading vs multiprocessing in python
22:31
Dave's Space
Рет қаралды 580 М.
7. Tuple Set and Dictionary in Python || PyCharm (Basic Level)
10:51
11. Class and Object in Python (__init__) || PyCharm (Intermediate)
8:49
Winning Codeforces Round 971 (Div. 4) in honor of @que_tourist
1:39:42
CFD Analysis of Head Lamp Condensation || VOF Approach
13:34
Shavan Technology
Рет қаралды 194
C++ Tutorial for Beginners - Learn C++ in 1 Hour
1:22:56
Programming with Mosh
Рет қаралды 4 МЛН
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12