## How to Convert a Number from Binary to Decimal in Python

Would you like to learn how to convert a number from binary to decimal in Python? You are in the right place. In Python, you represent binary numbers using 0b followed by the number. To convert a binary number to a decimal number Python provides the int() function. To convert the other way around, from … Read more

## How to Calculate the Square Root in Python: Multiple Approaches

The square root of a number x is the number y whose square is equal to x. In mathematics, the square root is represented by “√”. In this tutorial, we will see how to calculate the square root of a number in Python using multiple approaches. You can use several Python modules to calculate the … Read more

## How can I calculate the remainder of a division in Python?

I want to calculate the remainder of the division between two numbers in Python, how can I do it? The Python Modulo operator returns the remainder of the division between two numbers and is represented using the % symbol. The Modulo operator belongs to Python’s arithmetic operators. Here is an example of how to use … Read more

## Python Absolute Value: Let’s Do Some Math!

In this tutorial we will calculate the absolute value of numeric types in Python. We will also look at different libraries that allow to calculate it. To calculate the absolute value of a number in Python you can use the abs() built-in function. The argument passed to the abs function can be an integer, a … Read more