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.
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
- 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
Available operations: add, subtract, multiply, divide, floordivision, exponent, modulus
Enter first number: 10
Enter second number: 2
Enter the operation: divide
RESULT: 5.0
This project was created to strengthen my understanding of:
- Python functions
- User input and output
- Conditional statements
- Error handling
- Building simple command-line applications
This project is suitable for:
- Beginners learning Python fundamentals
- Practising arithmetic operations with functions
- Improving confidence in writing simple Python programs
Chidinma Charity Igwe