I have to write some arithmetic script. The script should be launched like this:
$ python name_script.py 2 + 2
$ python name_script.py 2 * 2
To enter data in one line, I use argparse.
But I have a problem with multiplication (*) and division (/), argparse doesn't perform them as mathematical operations.
How to make argparse perceive input (*) as multiplication?
 
    