Posts From Built-in Methods

All() Method In Python

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 the all() method and also take a look at how we can incorporate in our […]


Python pow() method

The Python pow() function is one of the most commonly used built-in function in Python programming. It is extensively used to calculate the value of a to the power n or more specifically an. It is a very useful function when dealing with some complex mathematical calculations or sometimes for other operations. So, let us […]

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? Let’s take a look. Iterators and Iterables Any iterable is an object that can be […]

Writing To File In Python

Python Write File

We have previously seen how we can read from a file in Python. Similarly writing to a file can also be achieved in Python programming. But, before we start writing to a file, we must ensure that the mode in which the file has been open allows it. Let us take a look using which […]

Python String ljust() and rjust() functions

Python String contains two built-in methods to provide the left and right justification. 1. Python String ljust() function Python String ljust() function accepts the character for padding it to the input string. Then, it substitutes the character and does padding to the right of the input string. Syntax: Parameters: length: The value of the length […]

Read File Python

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 we are going to elaborate on the process and look at the different methods by […]