An open API service indexing awesome lists of open source software.

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.

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