Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📟 Advanced Python Calculator & Number Analyzer

📖 Description

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.


⚙️ Features

  • 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

🧠 Concepts Used

  • while loop
  • if, elif, else conditions
  • Arithmetic operators
  • Type casting (int, float, str)
  • for loop and range()
  • Mathematical logic
  • String slicing
  • User input handling

🎯 Purpose of the Project

  • 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

🚀 How to Run

  1. Install Python on your system
  2. Run the program using:
    python calculator.py

About

An interactive Python calculator that performs calculations and identifies different mathematical properties of the result.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages