$ sudo apt-get update$ sudo apt-get install python3.x
$ sudo apt install python3-tk
- Open your terminal and move to the directory where calculator.py is located.
$ cd /path/to/your/calculator/directory
- Execute the following command:
$ python3 calculator.py
- A prompt will appear displaying the UI of the calculator.
- You can perform mathematical calculations by clicking on the numbers and operations.
- After entering the entire expression, press the Equal (=) button to see the result.
- Basic arithmetic operations: addition, subtraction, multiplication, and division.
- Support for square root calculations.
- Clear and remove last character functionality.