DEV Community

Cover image for How I Built a Visual Python Calculator in the Terminal
Dilesh Zingare
Dilesh Zingare

Posted on

How I Built a Visual Python Calculator in the Terminal

Hello and Welcome to my new article about Calculator made with a Python script it is a simple calculator for now but we will be advancing it further more. So, Hang on..... I am Dilesh Zingare and this is my new article about How to make a calculator from python.

**_

Let's Get Started.......

_**First of all you will have to visualize How will your calculator works and How will you write a script of it. These are two main goals that you have clear before writing the code it is essential to be clear toward your idea.

For better idea here's my raw code URL from github :- [https://github.com/dilesh596/ascii-cli-calculator] Now you can see how the simple calculator looks like now you can visualize it too, right. The only thing you will have to do is coding and it is so fun, isn't it......

After you visualize how your calculator works it's time for coding. Let's get to it..... First of all you will have to ask the user to enter the first number of the calculation and then the operation symbol and then at last the last number although It is a simple calculator it can only do one operation at a time. We will improve it eventually don't mind the present form see the big picture, Ok..... We have to use if, elif and else operations to differentiate between the operations such as Addition, Subtraction, Multiplication, Division, etc.,

**_

Info About Signs.......

_**

  • : Addition

  • : Subtraction

  • : Multiplication

** : Exponential

/ : Division

My github URL is........

[https://github.com/dilesh596]

Top comments (0)