Skip to content

Tag Archives: Python-Functions

Tensorflow is an open-source machine learning library developed by Google. One of its applications is to developed deep neural networks. The module tensorflow.nn provides support… Read More
Python Functions is a block of related statements designed to perform a computational, logical, or evaluative task. The idea is to put some commonly or… Read More
Python allows function arguments to have default values. If the function is called without the argument, the argument gets its default value. Default Arguments:  Python… Read More
In Python, the term monkey patch refers to dynamic (or run-time) modifications of a class or module. In Python, we can actually change the behavior… Read More
expandtabs is a method specified in Strings in Python 3. Sometimes, there is a need of specifying the space in the string, but the amount… Read More
decode() is a method specified in Strings in Python 2. This method is used to convert from one encoding scheme, in which argument string is… Read More
In today’s world, security holds the key in many applications. Thus the need for secure storage of passwords in the database is required and hence… Read More
fabs() is a method specified in math library in Python 2 and Python 3. Sometimes while computing the difference between 2 numbers to compute the… Read More
uniform() is a method specified in the random library in Python 3. Nowadays, in general, day-day tasks, there’s always the need to generate random numbers… Read More
Here, key differences between Method and Function in Python are explained. Java is also an OOP language, but their is no concept of Function in… Read More
The tuple() function is a built-in function in Python that can be used to create a tuple. A tuple is an immutable sequence type. Attention geek!… Read More
At many instances, we get a need to access an object like an iterator. One way is to form a generator loop but that extends… Read More
fsum() is inbuilt function in Python, used to find sum between some range or an iterable. To use this function we need to import the… Read More
Python library provides a number of built in methods, one such being startswith() and endswith() function which used in string related operations. startswith() Attention geek! Strengthen… Read More
Python reversed() method returns an iterator that accesses the given sequence in the reverse order. Python reversed() Syntax reversed(sequ)  Attention geek! Strengthen your foundations with the… Read More