Build a Calculator in Python

preview_player
Показать описание
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:

Python Game Programming Projects Playlist:

Java Game Programming Projects Playlist:

JavaScript Game Programming Projects Playlist:

Subscribe for more coding tutorials 😄!
Рекомендации по теме
Комментарии
Автор

tranks bro! i’m learnings a lot with your videos.

watching from Brasil 🇧🇷

daviferreira
Автор

Can you teach me how to make online game scripts?

montokeva
Автор

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

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

KennyYipCoding
welcome to shbcf.ru