Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 675 Bytes

File metadata and controls

32 lines (25 loc) · 675 Bytes

Calculator with History (Python)

This is a command-line based calculator application written in Python.
It performs basic arithmetic operations and stores the history of calculations in a text file.


📌 Features

  • Supports basic operations:
    • Addition (+)
    • Subtraction (-)
    • Multiplication (*)
    • Division (/)
  • Accepts inputs in both formats:
    • 2 + 2
    • 2+2
  • Saves calculation history to a file
  • Allows users to:
    • View history
    • Clear history
    • Exit the program
  • Handles invalid inputs and division by zero gracefully

🛠️ Technologies Used

  • Python 3
  • File Handling
  • Regular Expressions
  • Command Line Interface (CLI)