Skip to content

A simple Python command-line calculator with history support.

Notifications You must be signed in to change notification settings

tejas27x/SimpleCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

SimpleCalculator

A simple Python command-line calculator with history support.


Simple Python Calculator 🧮

This Python-based command-line calculator is suitable for beginners.
I created this project to practice Python fundamentals such as file handling, functions, user input handling, and basic error handling.

The calculator also preserves past results by storing calculation history in a text file.


✨ Features

  • Performs basic arithmetic operations:
    • Addition (+)
    • Subtraction (-)
    • Multiplication (*)
    • Division (/)
  • Supports brackets ()
  • Supports power operation using ^
  • Saves calculation history to a file
  • Commands available to view or clear history
  • Handles invalid input and division by zero

🛠️ Technologies Used

  • Python 3
  • File Handling
  • Basic Exception Handling

▶️ How to Run

  1. Make sure Python is installed on your system
  2. Download or clone this repository
  3. Run the program using:
python calculator.py

About

A simple Python command-line calculator with history support.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages