Introduction: Calculator Coded With Python

Picture of Calculator Coded With Python

After learning a bit about the programming language Python, I though that it would be neat to try and replicate some of the math that they Python shell does with a GUI. While I clearly did not match the shell's performance my calculator adds a few helpful shortcuts such as the numbers "pi" and "e" as well as the trig functions sin() cos() and tan().

You will need to keep everything both files in the zip file in the same folder for this to work. The code has a number of comments, but if you have any questions as to how anything works please let me know and I will be happy to show you!


electricman05 (author)2017-04-13

I have edited the code to fix the print issue but I keep on getting this error: Traceback (most recent call last):

File "/Downloads/Revised Calculator/", line 67, in <module>

import tkFont

ModuleNotFoundError: No module named 'tkFont'

Here are the edited files.

electricman05 (author)2017-04-13

Please edit your code. All of your print commands are missing parenthesis.

DRIFTINGM (author)2016-09-12


amandaghassaei (author)2012-10-12

what did you make this for? school?

I did, it was a short project.

About This Instructable




Bio: From solder to zip ties, lead acid batteries and LEDs, and especially Legos, putting things together has always fascinated me. The more challenging the better ... More »
More by Hammock Boy:Chipper Board - ATtiny Programming ShieldBoxhead recreated with Python with TkinterInterface Python and Arduino with pySerial
Add instructable to: