Skip to content

Tag Archives: Python-Built-in-functions

Python len() function is an inbuilt function in Python. It can be used to find the length of an object.  Python len() function Syntax: len(Object)… Read More
Python provides a lot of built-in functions that eases the writing of code. In this article, you will find the list of all built-in functions… Read More
Python String rjust() method returns a new string of a given length after substituting a given character on the left side of the original string.… Read More
Python String ljust() method left aligns the string according to the width specified and fills remaining space of line with blank space if ‘fillchr‘ argument… Read More
Python String maketrans() function is used to construct the transition table i.e specify the list of characters that need to be replaced in the whole… Read More
The python open() function is used to open() internally stored files. It returns the contents of the file as python objects. Syntax: open(file_name, mode)  Parameters:… Read More
The python print() function as the name suggests is used to print a python object(s) in Python as standard output. Syntax: print(object(s), sep, end, file,… Read More
Linear equations using one variable of the form a + bx = c + dx can be solved in Python using eval() function. The input… Read More
In python programming, sometimes it is necessary to remove all decimals from a number to get the required output. These decimals are also called Floating… Read More
Fractions are a part of a whole commodity that can be expressed in the form of a numerator divided by the denominator. A fraction is… Read More
Given a number N, the task is to write a Python program to print the octal value of the numbers from 1 to N. Examples:… Read More
In simple words, any object that could be looped over is iterable. For instance, a list object is iterable and so is an str object.… Read More
Given a number N, the task is to write a Python program to print the hexadecimal value of the numbers from 1 to N. Examples:… Read More
Python any() function returns True if any of the elements of a given iterable( List, Dictionary, Tuple, set, etc) are True else it returns False.… Read More
The Python all() function returns true if all the elements of a given iterable (List, Dictionary, Tuple, set, etc.) are True, else it returns False.… Read More

Start Your Coding Journey Now!