Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

this python command-line calculator performs basic arithmetic operations like addition, subtraction, multiplication, division, and more. it features user-friendly prompts, error handling, and supports multiple calculations in one session, making it perfect for quick math or learning python basics.

Topics

Resources

Stars

19 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages