Skip to content

Tag Archives: Python-Built-in-functions

In the new era of digital technology, Machine Learning, Artificial Intelligence and Cyber Security are a rising phenomenon. Python stands out as a language to… Read More
In python, each variable to which we assign a value/container is treated as an object. Object in itself is a class. Let’s discuss the properties… Read More
In python, iter() method is used to convert to convert an iterable to iterator. This presents another way to iterate the container i.e access its… Read More
setattr() is used to assign the object attribute its value. Apart from ways to assign values to class variables, through constructors and object functions, this… Read More
There are many ways to iterate over in Python. next() method also performs the similar task over the iterator. It can be the alternative to… Read More
getattr() function is used to access the attribute value of an object and also give an option of executing the default value in case of… Read More
hasattr() is an inbuilt utility function in Python which is used in many day-to-day programming applications. Its main task is to check if an object… Read More
ldexp() function is one of the Standard math library function in Python, which returns x * (2**i). This is also called as inverse of Python… Read More
fmod() function is one of the Standard math library function in Python, which is used to calculate the Module of the specified given arguments. Syntax:… Read More
frexp() function is one of the Standard math Library function in Python. It returns mantissa and exponent as a pair (m, e) of a given… Read More
globals() function in Python returns the dictionary of current global symbol table. Symbol table: Symbol table is a data structure which contains all necessary information… Read More
Given two strings str1 and str2. The task is to find the minimum number of characters to be replaced by $ in string str1 such… Read More
sample() is an inbuilt function of random module in Python that returns a particular length list of items chosen from the sequence i.e. list, tuple,… Read More
Counter class is a special type of object data-set provided with the collections module in Python3. Collections module provides the user with specialized container datatypes,… Read More
bytearray() method returns a bytearray object which is an array of given bytes. It gives a mutable sequence of integers in the range 0 <=… Read More