Category Built-in Methods

Python bytearray() function

Python bytearray() function

In this article, we will be having a look at one of the Python’s in-built function — Python bytearray() function. Understanding Python bytearray() function Python has in-built bytearray() method that creates an array of bytes and returns a bytearray object…

How to use the Python divmod() function

How to use the Python divmod() function

In this article, we will be unveiling the working and use of Python divmod() function in detail. 1. Python divmod() function Python has an in-built divmod() function which performs division and modulus operation on the two input values. The divmod()…

How to Use the Python callable() Method

How to Use the Python callable() Method

Introduction In this tutorial, we are going to discuss the Python callable() method along with its uses and working. Basically, an object or instance is termed callable when it has a defined __call__() function. In that case, we can refer…

Python isinstance() Method

Python isinstance() Method

Introduction In this tutorial, we’ll go over the Python isinstance() method. A user may encounter some situations where she/he needs to determine whether an object is an instance of a specific class, mainly in inheritance. Python provides an in-built method…

The Python isdecimal() Method

The Python isdecimal() Method

Introduction We’ll be introducing the python isdecimal() method in this tutorial. What if a user wants to check whether a given string contains a number or more specifically a decimal number or not? That can be a case when the…

The Python float() Method

The Python float() Method

Introduction All Python features are associated with objects. Python float creates floating-point objects in Python. It is one of the primitive elements of Python programming. Further all kinds of objects are classified into types. Some of the basic native types…

any() Method in Python Programming

any() Method in Python Programming

The any() method in Python is another built-in method. We saw earlier the working and the usage of the all() method in Python. The any() method is very similar to that method. It tells us about the nature of any…

all() Method In Python Programming

all() Method In Python Programming

Python comes with many interesting pre-defined methods. One of them is the all() method in Python. This method is widely used to check whether all the elements of an iterable Python object are truthy. So let us learn more about…

Python Iterator

Python Iterator

A Python Iterator is an object that can be iterated upon. Any kind of object that supports this kind of iteration is called as an iterator. Now, you may be confused. There exists another object called iterable. What is that?…

Python Read File – 3 Ways You Must Know

Python Read File – 3 Ways You Must Know

We have already seen in our Python- File Handling Tutorial that how we can perform different operations in and on a file using Python programming. One of the operations was the reading from the file, which was already created. Here…