balajibonageri / one-line-calculator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

This Python app is called One Line Calculator which is a simple program setup to read an expression that you give it and print you the solution using EVAL Function.

  • Python Version: 3.6.1

  • Using Terminal completes a series of steps to give you the solution based off of PEMDAS:

    • Remove white space for user friendly.

    • Find, if any, start and end parenthesis

    • Next, compute the exponents

    • After, from left to right multiply and divide

    • Lastly, finish up from left to right with addition and subtraction.

About


Languages

Language:Python 100.0%