Skip to content

Latest commit

 

History

History
 
 

calculator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Calculator

Restrictions

  • Equations are strictly evaluated left to right (so don't be surprised when it can't accurately compute more complex equations)
  • Equations must be entered WITHOUT spaces. For example:
    • Correct:

      >>> 4+3/99+4

    • Incorrect:

      >>> 5 + 4 + 99 - 33 * 4

  • Parenthesis are not yet included (this requires a lot of more work to validate. I encourage anyone to try though. You'll have to use a more advanced algorithm).

How to install and run

  1. Fork the repo by clicking the fork logo on top right
  2. Clone the repo git clone [email protected]:AseanK/beginner-python-games.git
  3. Head to the calculator folder
  4. Run the file using python command python calc.py