Skip to content

NmaCharis/Calculator-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Calculator Project

Overview

This is a beginner-friendly Python calculator application built to perform fundamental arithmetic operations using functions, user input, and conditional logic.

The program allows users to enter two numbers, choose an operation, and receive the result instantly. It also includes basic error handling, such as preventing division by zero and accepting decimal numbers as input.

Features

The calculator supports the following operations:

  • Addition (add)
  • Subtraction (subtract)
  • Multiplication (multiply)
  • Division (divide)
  • Floor Division (floordivision)
  • Exponentiation (exponent)
  • Modulus (modulus)

https://github.com/NmaCharis/Calculator-Project/blob/main/Calculator.Py

Functionality

  • Accepts numeric input, including floats
  • Operation input is not case-sensitive
  • Handles invalid calculations and displays error messages where necessary
  • Prevents division by zero errors

Example Usage

Available operations: add, subtract, multiply, divide, floordivision, exponent, modulus
Enter first number: 10
Enter second number: 2
Enter the operation: divide
RESULT: 5.0

Purpose of the Project

This project was created to strengthen my understanding of:

  • Python functions
  • User input and output
  • Conditional statements
  • Error handling
  • Building simple command-line applications

Ideal For

This project is suitable for:

  • Beginners learning Python fundamentals
  • Practising arithmetic operations with functions
  • Improving confidence in writing simple Python programs

Author

Chidinma Charity Igwe

About

A beginner-friendly Python calculator application that performs fundamental arithmetic operations using functions, user input, and error handling.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages