Skip to content

firaol0902/basic_calculator-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

🧮 Python Calculator

A simple command-line calculator built using Python.

This project performs basic arithmetic operations based on user input.

🚀 Features

. Addition (+) . Subtraction (-) . Multiplication (*) . Division (/) . Handles division by zero errors . Simple and beginner-friendly structure

🛠️ How It Works

The program:

  1. Asks the user to enter the first number.
  2. Asks the user to choose an operator (+, -, *, /).
  3. Asks the user to enter the second number.
  4. Performs the selected operation.
  5. Displays the result.

The calculator uses separate functions for each arithmetic operation:

  • add(a, b)
  • subtract(a, b)
  • multiply(a, b)
  • divide(a, b)

▶️ How to Run

  1. Make sure Python is installed on your system.
  2. Clone the repository or download the file.
  3. Open terminal in the project folder.
  4. Run:

👨‍💻 Author Fraol Muluneh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages