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 program 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

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
Close Menu