Using Python as Calculator

In my daily computing activities, I often use a tool to calculate. On Linux, there are a number of calculator tools to choose from, some of which are the Mate calculator (mate-calc), which is the default Mate desktop application, or KCalc, which is on KDE. However, I mostly use other alternatives, namely Python shell or Python REPL to do simple calculations.

To run the Python shell, you can open a terminal and then type the python3 command. Through the Python shell, we can perform simple operations including addition, subtraction, division, and multiplication.


Trigonometry, exponential, and logarithmic calculations can also be performed through the Python shell, as well as basic statistics, by first importing the library.

A more complete reference on using the Python shell as a calculator can be read at the following link https://clouds.eos.ubc.ca/~phil/docs/problem_solving/03-The-Python-REPL/03.01-Python-as-a- Calculator. html

Comments

Popular posts from this blog

Contoh Inheritance (Pewarisan) di Java

Review Singkat Pilihan Transportasi Umum Rute Solo - Wonosobo

Physical address dan Logical Address dalam Jaringan Komputer