Skip to content

Tag Archives: Python-Functions

Decimal#rotate() : rotate() is a Decimal class method which returns the rotated copy of x, y times Syntax: Decimal.rotate() Parameter: Decimal values Return: the rotated… Read More
With the help of TextBlob.noun_phrases() method, we can get the noun phrases of the sentences by using TextBlob.noun_phrases() method. Syntax : TextBlob.noun_phrases() Return : Return… Read More
With the help of TextBlob.sentiment() method, we can get the sentiments of the sentences by using TextBlob.sentiment() method. Syntax : TextBlob.sentiment() Return : Return the… Read More
With the help of TextBlob.correct() method, we can get the corrected words if any sentence have spelling mistakes by using TextBlob.correct() method. Syntax : TextBlob.correct() Return… Read More
With the help of TextBlob.Word.spellcheck() method, we can check the word if that word have spelling mistake by using TextBlob.Word.spellcheck() method. Syntax : TextBlob.Word.spellcheck() Return… Read More
With the help of TextBlob.word_counts() method, we can get the word count of a particular word in the sentence by using TextBlob.word_counts() method. Syntax :… Read More
As time module provides various time-related functions. So it is necessary to import the time module otherwise it will through error because of the definition… Read More
This sys module provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter. It provides… Read More
random() function is used to generate random numbers in Python. Not actually random, rather this is used to generate pseudo-random numbers. That implies that these… Read More
The time module provides various time-related functions. We must import the time module before using perf_counter() so we can access the function without throwing any… Read More
time.process_time() function always returns the float value of time in seconds. Return the value (in fractional seconds) of the sum of the system and user… Read More
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

Start Your Coding Journey Now!