Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 974 Bytes

File metadata and controls

24 lines (19 loc) · 974 Bytes

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 git@github.com:AseanK/beginner-python-games.git
  3. Head to the calculator folder
  4. Run the file using python command python calc.py