Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

🧮 Python CLI Calculator (Novice Level)

A simple command-line calculator built using Python.
This project demonstrates basic programming concepts like input handling, conditional logic, and error handling.


🚀 Features

  • ➕ Addition
  • ➖ Subtraction
  • ✖️ Multiplication
  • ➗ Division (with zero-check)
  • Exponential
  • 🧮 Modulus
  • 🎨 Colored output using colorama
  • ⚠️ Basic error handling

📸 Preview

Simple Calculator

Enter first number: 10

Enter operator (+, -, *, /, %): +

Enter second number: 5

Result: 15

🛠️ Requirements

  • Python 3.x

  • colorama library

  • Install dependency:

  • pip install colorama
    

🧠 What I Learned

  • Using if-elif-else for decision making
  • Handling user input with input()
  • Type conversion using float()
  • Error handling with try-except
  • Improving CLI UX using colors

⚠️ Limitations

  • Runs only once (no loop yet)
  • Does not store previous results
  • Limited operator support

📌 Project Level

Beginner / Novice

This project is part of my learning journey in Python. More advanced projects coming soon 🚀


🤝 Contributing

This is a personal learning project, but suggestions are always welcome!