DEV Community

Wangeci Ndovu
Wangeci Ndovu

Posted on

Simple beginer python calculator

Simple Python Calculator

A basic command-line calculator built with Python. This project performs simple arithmetic operations such as addition, subtraction, multiplication, and division.

Features

  • Addition
  • Subtraction
  • Multiplication
  • Division
  • User input handling
  • Simple and readable code structure

Getting Started

git@github.com:wangecindovu-lab/Simple-Beginner-python-calculator.git

Run the calculator.

python calculator.py
Enter fullscreen mode Exit fullscreen mode

Usage

  • Run the script
  • Choose an operation (+, -, *, /)
  • Enter the first number
  • Enter the second number
  • View the result

Example

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

Project Structure

.
├── calculator.py
└── README.md

Top comments (0)