convert math equation from string to int code example Example: convert math equation from string to int a = '10 * 10' print(eval(a))