Skip to content

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.

Notifications You must be signed in to change notification settings

afifahhadie/calculator-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages