Avatar ·

Calculating the value of a mathematical expression from a string

📁 Advanced Python Topics

There is a string containing a mathematical expression like:

1/3+2/3

Is there a module that calculates the value of such expressions?