how to build a calculator in python