Skip to content

Tag Archives: Python-Built-in-functions

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
The any() function is an inbuilt function in Python which returns true if any of the elements of a given iterable( List, Dictionary, Tuple, set,… Read More
The all() function is an inbuilt function in Python which returns true if all the elements of a given iterable( List, Dictionary, Tuple, set, etc)… Read More
Almost everything in Python is an object, similarly function is an object too and all the function objects have a __closure__ attribute. __closure__ is a… Read More
Let us see how to format containers that were accessed through  __getitem__ or getattr() using the format() method in Python. Accessing containers that support __getitem__… Read More
Rounding a number means making the number simpler by keeping its value intact but closer to the next number. Example: If we want to round off… Read More
Python min() function returns the smallest of the value or smallest item in an iterable passed as its parameter. There are two types of min… Read More
The max() function returns the largest item in an iterable or the largest of two or more arguments. It has two forms. max() function with… Read More
Here are some of the exciting features that Python 3.8 provides for programmers in competitive programming. These new features are related to some math functions… Read More
In Python, we can represent an integer value in the form of string. Int value of a string can be obtained by using inbuilt function… Read More