import ast # Abstract syntax tree package to be used for safe evaluation of mathematical expressions. import operator # Exports a set of functions corresponding to the intrinsic operators of Python ...