mathematics

How to extract digits from a number from right to left without using strings in Python

Working with numbers is one of the first skills you should get when learning programming. It does not matter what programming language you are learning. This is always useful because it helps you to learn how algorithms work. The short answer to this question is to use operations from mathematics: division, the remainder of division […]

How to extract digits from a number from right to left without using strings in Python Read More »

Is mathematics important for programming? python example

People that want to learn (or are learning) programming, have a common question: is mathematics important for programming? In this article, I’ll answer that question through a simple python example. The short answer to the question is yes, mathematics is important for programming. But we can also say that it is not compulsory. Let’s say

Is mathematics important for programming? python example Read More »