Build a Calculator in Python

Subscribers:
50,600
Published on ● Video Link: https://www.youtube.com/watch?v=28tj-IBfGH4



Duration: 0:00
1,228 views
49


Python Calculator. In this tutorial, you will learn how to code a calculator using python tkinter graphics library.

Throughout the tutorial, you will learn how to create a gui (graphical user interface) for the calculator, style the buttons to resemble the iphone calculator, add numbers to a display label, and evaluate different mathematical expressions through button clicks.

button_values = [
["AC", "+/-", "%", "÷"],
["7", "8", "9", "×"],
["4", "5", "6", "-"],
["1", "2", "3", "+"],
["0", ".", "√", "="]
]

right_symbols = ["÷", "×", "-", "+", "="]
top_symbols = ["AC", "+/-", "%"]

Setup Python with Visual Studio Code:
   • How to set up Python on Visual Studio...  

Code: https://github.com/ImKennyYip/calculator-python

Website: https://www.kennyyipcoding.com/

Python Game Programming Projects Playlist:
   • Python Game Programming Tutorial  

Java Game Programming Projects Playlist:
   • Java Game Programming Tutorials  

JavaScript Game Programming Projects Playlist:
   • JavaScript Game Programming Tutorials  

Subscribe for more coding tutorials 😄 !