Skip to content

A simple Python calculator for basic arithmetic operations.

Notifications You must be signed in to change notification settings

AJ-254/pythonweek1assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

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

About

A simple Python calculator for basic arithmetic operations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages