Skip to content

Ursula-Mtshweni/Python_Week1_assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Python_Week1_assignment

Basic Calculator Program for a beginner containing only four arithmetic functions.

🧮 Basic Calculator Program (Python)

Description

This is a simple Python program that functions as a basic calculator. It prompts the user to enter two numbers and select a mathematical operation: addition (+), subtraction (-), multiplication (*), or division (/). The program then performs the selected operation and displays the result.

How It Works

  1. The user is asked to input two numeric values.
  2. The user is then prompted to enter an arithmetic operator.
  3. The program calculates and prints the result in the format:
    number1 operator number2 = result

Features

  • Supports four basic operations: +, -, *, and /
  • Prevents division by zero
  • Simple and beginner-friendly structure

ENJOY 😘

About

Basic Calculator Program for a beginner containing only four arithmetic functions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages