Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 969 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 969 Bytes

Simple Calculator Program in Python 🧮

This Python program implements a simple calculator that performs basic arithmetic operations.

Introduction ℹ️

The Simple Calculator program allows users to perform addition, subtraction, multiplication, and division operations on two numbers.

Features ✨

  • Arithmetic Operations: Supports addition, subtraction, multiplication, and division.
  • User-Friendly Interface: Simple command-line interface for easy interaction.
  • Error Handling: Validates user input and handles errors gracefully.

Usage 🖥️

  1. Clone or download the repository.
  2. Open the calculator.py file in your Python interpreter or code editor.
  3. Follow the instructions to enter two numbers and choose an arithmetic operation.
  4. The program will display the result of the operation.

Example

$ python calculator.py
Enter first number: 10
Enter second number: 5
Choose operation (+, -, *, /): +
Result: 15