Skip to content

Tag Archives: Python-Functions

Python timedelta() function is present under datetime library which is generally used for calculating differences in dates and also can be used for date manipulations… Read More
In problem solving and functional programming, currying is the practice of simplifying the execution of a function that takes multiple arguments into executing sequential single-argument… Read More
Dunder methods (double underscore) in Python are methods which are commonly used for operator overloading. Some examples of dunder methods are __init__ , __repr__ ,… Read More
Decorators are a very powerful and useful tool in Python since it allows programmers to modify the behaviour of function or class. Decorators allow us… Read More
Method Resolution Order : Method Resolution Order(MRO) it denotes the way a programming language resolves a method or attribute. Python supports classes inheriting from other… Read More
The classmethod() is an inbuilt function in Python, which returns a class method for a given function.; Syntax: classmethod(function) Parameter :This function accepts the function… Read More
locals() function in Python returns the dictionary of current local symbol table. Symbol table: It is a data structure created by compiler for which is… Read More
The frozenset() is an inbuilt function in Python which takes an iterable object as input and makes them immutable. Simply it freezes the iterable objects… Read More
What is Polymorphism: The word polymorphism means having many forms. In programming, polymorphism means the same function name (but different signatures) being used for different… Read More
Yield is a keyword in Python that is used to return from a function without destroying the states of its local variable and when the… Read More
The Python help function is used to display the documentation of modules, functions, classes, keywords, etc.  The help function has the following syntax: help([object]) Python… Read More
range() : Python range function generates a list of numbers which are generally used in many situation for iteration as in for loop or in… Read More
While writing a code, there might be a need for some specific modules. So we import those modules by using a single line code in… Read More
Decorators are a very powerful and useful tool in Python since it allows programmers to modify the behaviour of function or class. Decorators allow us… Read More
In Python, the main purpose of Property() function is to create property of a class. Syntax: property(fget, fset, fdel, doc) Parameters: fget() – used to… Read More