Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 698 Bytes

File metadata and controls

33 lines (24 loc) · 698 Bytes

Python-Command-Line Calculator

A simple Python-based calculator that supports basic arithmetic operations:

  • Addition (+)
  • Subtraction (-)
  • Multiplication (*)
  • Division (/)
  • Floor Division (//)
  • Exponentiation (**)
  • Modulo (%)

Features

  • User-friendly input prompts
  • Error handling for invalid inputs and division by zero
  • Ability to perform multiple calculations in one session

Usage

  1. Clone the repository:
    git clone https://github.com/SaurabhSSB/python-calculator.git
    
  2. Navigate to the directory:
    cd command-line-calculator
    
  3. Run the script:
    python calculator.py
    
    
  4. Follow the on-screen instructions.