Error Handling

In Python, if the program is syntactically correct but results in error generally is exception error like dividing by zero will leads to exception error. We have built-in exception error…

0 Comments

Special Methods

Special methods are predefined methods of any class. We create objects like using range, zip, then these objects have certain predefined methods like next() or __next__. Special methods are recognized…

0 Comments

Logging

Logging is very useful for a programmer at debugging side. It will keep track of the logs/operations performed during the program. Python provides the standard library to perform logging. You…

0 Comments

Decorators

Decorators in Python is a very useful concept as it helps in making a function or class more dynamic. In decorators, we have wrapper function(inner function) and we are passing…

0 Comments

Args and kwargs

Args and kwargs stand for arguments, key and word arguments. Actually, the idea behind args and kwargs is that it happens many times when we don't know how many parameters…

0 Comments

Closures in Python

The closure┬áis the function object which extends the scope of a function so that it can be invoked outside its scope. A closure is unlike a plain function that allows…

0 Comments

First Class Function

First class functions are functions which can be returned from another function, which can be passed as parameters into another function. Properties of the first-class function -: Store the function…

0 Comments
Close Menu