https://github.com/afifahhadie/calculator-py
This repository contains two implementations of a simple calculator in Python: one using functions (kalkulator.py) and another using a class (kalkulator2.py), the program allows users to perform basic arithmetic operations.
https://github.com/afifahhadie/calculator-py
calculator calculator-python function kalkulator-sederhana oops-in-python python python3
Last synced: 11 months ago
JSON representation
This repository contains two implementations of a simple calculator in Python: one using functions (kalkulator.py) and another using a class (kalkulator2.py), the program allows users to perform basic arithmetic operations.
- Host: GitHub
- URL: https://github.com/afifahhadie/calculator-py
- Owner: afifahhadie
- Created: 2025-03-08T09:11:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-08T09:21:02.000Z (over 1 year ago)
- Last Synced: 2025-07-06T15:05:26.262Z (11 months ago)
- Topics: calculator, calculator-python, function, kalkulator-sederhana, oops-in-python, python, python3
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Calculator ๐งฎ
This repository contains two implementations of a simple calculator program in Python. The program allows users to perform basic arithmetic operations such as addition, subtraction, multiplication, and division.
### ๐ Features
- Basic arithmetic operations (+, -, ร, รท)
- Input validation to ensure users enter valid numbers
- Error handling for division by zero
- Exit option when the user no longer wants to perform calculations
### ๐ File Structure
kalkulator.py โ Calculator implementation using a function-based approach
kalkulator2.py โ Calculator implementation using a class-based approach
### ๐ Technologies Used
- Python3