Skip to content

Ghanashyamgudela/Calculator-task-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

⚙️ Python CLI Calculator

📌 Overview

This Python CLI Calculator supports basic math operations using a flexible, function-based approach with a clean command-line interface. It ensures safe inputs and includes error handling for division by zero and invalid inputs.

🧠 Features

  • Supports Addition, Subtraction, Multiplication, and Division
  • Smart error handling (invalid numbers/operators, division by zero)
  • Repeats until the user chooses to exit
  • Uses a dictionary to map operators to functions (cleaner logic)

🚀 How to Run

  1. Clone this repository or download calculator.py
  2. Run in terminal:

bash python calculator.py

🧑‍💻 Author

Ghana Shyam Gudela

About

A simple and interactive command-line calculator built in Python that performs basic arithmetic operations (+, -, *, /) with input validation and user-friendly prompts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages