Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 596 Bytes

File metadata and controls

25 lines (18 loc) · 596 Bytes

Basic Calculator 🧮

This is a simple Python program that acts as a basic calculator.

Features:

  • Asks the user to input two numbers
  • Prompts for a mathematical operation: +, -, *, /
  • Performs the chosen operation and prints the result
  • Handles division by zero
  • Detects invalid operation input

Example

  • Enter the first number: 10
  • Enter the second number: 5
  • Enter an operation (+, -, *, /): +

Result: 10.0 + 5.0 = 15.0

How to Run

Make sure Python is installed on your system.

Run the program using:

python calculator.py