Skip to content

A simple Python command-line calculator that supports basic arithmetic operations, remembers the last result, and allows reuse of the previous answer (ANS).

License

Notifications You must be signed in to change notification settings

srinivasagudi0/basic-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Basic Calculator ๐Ÿงฎ

A simple Python command-line calculator that performs basic arithmetic operations like addition, subtraction, multiplication, division, floor division, and exponentiation.
It also remembers the last result (ANS) for reuse in the next calculation.

๐Ÿš€ Features

  • Supports +, -, *, /, //, **, and ^ operators
  • Handles invalid inputs and division by zero
  • Remembers the previous answer (ANS)
  • Lightweight and beginner-friendly

๐Ÿง‘โ€๐Ÿ’ป How to Run

  1. Clone this repository:
    git clone https://github.com/srinivasagudi0/basic-calculator.git

About

A simple Python command-line calculator that supports basic arithmetic operations, remembers the last result, and allows reuse of the previous answer (ANS).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages