Tag: python
-
pythonPython Decorators
In Python, a decorator is a special kind of function that modifies the behavior of another function. Decorators are often…
January 17, 2023
-
pythonPython Closures
Before we can understand what a closure is, we must first understand nested functions and non-local variables. Nested functions in…
January 17, 2023
-
pythonGenerators in Python
Generator Function: In Python, a generator is a function that allows you to create an iterator, an object that generates…
January 17, 2023
-
pythonyield Keyword in Python
The yield keyword in Python is used in the body of a function like a return statement, but when a…
January 13, 2023
-
pythonIterable and Iterator in Python
What is an Iterable? In Python, an iterable is an object that can be looped over, such as a list,…
January 12, 2023
-
pythonPython __name__ Variable
Because Python lacks a main() function, when the command to run a Python program is given to the interpreter, the…
January 11, 2023
-
pythonBarrier Object in Python
Barrier object in Python is used to synchronize the execution of multiple threads. When a thread reaches a barrier point,…
January 11, 2023
-
pythonCondition object in Python
A Condition object in Python is a synchronization object that allows multiple threads to wait for a specific condition to…
January 9, 2023
-
pythonTimer Objects in Python
Timer objects are used to schedule a function to be executed at a certain time in the future. The timer…
January 7, 2023
-
pythonEvent Object in Python
What is an Event Object? An Event object in Python is a class that is used to signal the occurrence…
January 6, 2023