Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

🧮 Simple Python CLI Calculator

🚀 Build. Calculate. Learn! This lightweight Python command-line calculator brings basic arithmetic straight to your terminal. Perfect for coding beginners, it’s a hands-on and engaging way to master user inputs, conditional logic, and error handling in Python.

✨ Features

  • Basic Arithmetic Operations: Easily perform addition (+), subtraction (-), multiplication (*), and division (/).
  • Precision Formatting: Division results are automatically formatted to display exactly two decimal places for better readability .
  • Robust Error Handling: Implements a try-except block to gracefully catch unexpected invalid inputs and display the error message without abruptly crashing the program .

🛠️ Prerequisites

Before running this project, ensure you have the following installed on your machine:

  • Python 3.x

🚀 How to Run the Project

Follow these simple steps to run the calculator on your local machine:

  1. Clone this repository to your local machine or download the project_Calclutor.py file
  2. Open your Terminal or Command Prompt.
  3. Navigate to the directory where the file is located.
  4. Execute the following command:
   python project_Calclutor.py

About

This project is a simple Python command-line calculator. It performs basic arithmetic operations using two numbers and an operator. It helps beginners learn input/output, conditions, and error handling in Python.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages