🧮 Calculator Project

Repository Name: calculator-python
Type: Python Application
Objective: Build a simple calculator to perform basic arithmetic operations


💻 Features

  • Addition, Subtraction, Multiplication, Division
  • Handles invalid inputs
  • User-friendly and easy to extend

âš¡ Sample Code Snippet

# Simple Python Calculator

def add(a, b):
    return a + b

def subtract(a, b):
    return a - b

def multiply(a, b):
    return a * b

def divide(a, b):
    return a / b if b != 0 else "Cannot divide by zero"

# Example usage
print("Addition:", add(5, 3))
print("Subtraction:", subtract(10, 2))
print("Multiplication:", multiply(4, 6))
print("Division:", divide(12, 3))

Built With

Share this project:

Updates