This project is a Python-based calculator that performs basic arithmetic operations and then analyzes the result mathematically.
After each calculation, the program checks various properties of the result such as whether it is positive or negative, prime or composite, even or odd, a perfect square, perfect cube, palindrome, or an Armstrong number.
This repository is created as a beginner-friendly Python project to practice core programming concepts and logical thinking.
- Basic arithmetic operations:
- Addition (+)
- Subtraction (-)
- Multiplication (*)
- Division (/)
- Floor Division (//)
- Modulus (%)
- Exponentiation (**)
- Continuous execution using a loop
- Mathematical analysis of the result:
- Positive / Negative / Zero
- Integer or Decimal
- Even or Odd
- Prime or Composite
- Natural and Whole numbers
- Perfect Square
- Perfect Cube
- Palindrome number
- Armstrong number
- while loop
- if, elif, else conditions
- Arithmetic operators
- Type casting (int, float, str)
- for loop and range()
- Mathematical logic
- String slicing
- User input handling
- To strengthen Python fundamentals
- To understand number properties using programming
- To improve logical and problem-solving skills
- To build a basic yet meaningful GitHub project
- Install Python on your system
- Run the program using:
python calculator.py