How to parse equation string in Python? [closed]

  calculator, python

I have a problem that if the user enters 12 + 5, the program should parse the string and return 17.

The eval function cannot be used.

Source: Python Questions

LEAVE A COMMENT