Calculator written in python