Skip to content

CodeFatherTech

Learn to Code. Shape Your Future

  • Blog
  • Courses

Math in Python

How to Convert a Number from Binary to Decimal in Python

December 8, 2024March 3, 2023 by Claudio Sabato

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

Categories Blog Tags Math in Python Leave a comment

How to Calculate the Square Root in Python: Multiple Approaches

June 27, 2025December 6, 2022 by Claudio Sabato

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

Categories Blog Tags Math in Python Leave a comment

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

December 8, 2024March 4, 2021 by Claudio Sabato

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

Categories Blog Tags Math in Python Leave a comment

Python Absolute Value: Let’s Do Some Math!

December 8, 2024February 26, 2021 by Claudio Sabato

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

Categories Blog Tags Math in Python Leave a comment

CONTACT US

Email: hello@codefather.tech

  • About Claudio Sabato
  • Privacy Policy
  • Terms and Conditions
  • Acceptable Use Policy
  • Affiliate Disclaimer
© 2025 CodeFatherTech

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

CodeFatherTech
Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.