Fun arithmetic with “Python”

In programming, there is often a process that operates on several values so that a new value is generated. For example, suppose we operate on the addition of two numbers, namely 3 and 5. The result of the operation of 3+5 equals to 8. The + sign in the 3+5 operation is also called the operator. Similarly, the -, *, / and so on are all including operators. So in this case the operator function is to operate on two or more values so that a new value is generated. Python has several types of operators, namely arithmetic operators, string operators, logical operators, and relational operators.
Well, one of them is Arithmetic Operations, which operates on values in the form of numbers (can be integer or float data types). In a mathematical expression, there can be one or more arithmetic operators.
This form of arithmetic operations can be applied in the Python programming language. Let’s practice right away. For example, we will solve the problem of a problem, namely, Mr. Rosid traveled from city A to city D which is 800 km away by car via toll road. If the fuel consumption of Mr. Rosid is 1:10 (1 liter of fuel can be used to cover 10 km), so how many liters of gasoline are needed for the trip? How to answer it? Check out the program below.

So later after we run programming like the picture above it will produce an output that will answer the above problem.

After that, the result is 80 liters. Python does make it easier for us in all forms of programming that we want with an easy-to-understand language. Can be used in Arithmetic operations is one of the little things we can do in “Python”. Learning the programming language “python” will be able to develop if we try to solve problems in a program.