Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exercise: Calculator using lookup table

Write a script that will accept a math expression such as python calc.py 2 + 3 and will print the result. Use lookup tables select the implementation of the actual computation. (supporting +, - , *, /) is enought