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)'))
Pure python PEMDAS expression solver without using built-in eval function.
Supports nested parenthesis. Supported operators: + – * / ^
from pypemdas import pemdas
print(pemdas('1*(2-3)'))