Skip to content

Tag Archives: Python-Built-in-functions

Operator.countOf() is used for counting the number of occurrences of b in a. It counts the number of occurrences of value. Syntax : Operator.countOf(freq =… Read More
math.copysign() is a function exists in Standard math Library of Python. This function returns a float value consisting of magnitude from parameter x and the… Read More
The int type implements the numbers.Integral abstract base class. 1. int.bit_length() Returns the number of bits required to represent an integer in binary, excluding 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
Python isinstance() function returns True if the object is specified types, and it will not match then return False.  Syntax : isinstance(obj, class) Parameters : … Read More
There are many iterables in Python like list, tuple etc. range() gives another way to initialize a sequence of numbers using some conditions.range() is commonly… Read More
Set, a term in mathematics for a sequence consisting of distinct language is also extended in its language by Python and can easily be made… Read More
Python byte() function converts an object to an immutable byte-represented object of given size and data. Syntax : bytes(src, enc, err) Parameters :  src :… Read More
Python hash() function is a built-in function and returns the hash value of an object if it has one. The hash value is an integer… Read More
Python object() function returns the empty object, and the Python object takes no parameters. In python, each variable to which we assign a value/container is… Read More
python iter() method returns the iterator object, it is used to convert an iterable to the iterator. Syntax : iter(obj, sentinel) Parameters :  obj :… Read More
Python setattr() method is used to assign the object attribute its value.  Python setattr() Function Syntax Syntax : setattr(obj, var, val) Parameters :  obj :… Read More
Python next() function returns the next item of an iterator. Python next() method Syntax Syntax : next(iter, stopdef) Parameters :  iter : The iterator over… Read More
Python getattr() function is used to access the attribute value of an object and also gives an option of executing the default value in case… Read More
Python hasattr() function is an inbuilt utility function, which is used to check if an object has the given named attribute and return true if… Read More

Start Your Coding Journey Now!