pypemdas

Pure python PEMDAS expression solver without using built-in eval function.

Supports nested parenthesis. Supported operators: + – * / ^

Example use:

from pypemdas import pemdas
print(pemdas('1*(2-3)'))

GitHub

View Github