Metadata-Version: 2.3
Name: calculator_turing_IS
Version: 1.1.0
Summary: A simple calculator package for basic arithmetic operations
License: MIT
Author: Ignas Statkevicius
Author-email: ignas.statkevicius@gmail.com
Requires-Python: >=3.8
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Project-URL: Repository, https://github.com/TuringCollegeSubmissions/istatk-DS.v3.1.2.5
Description-Content-Type: text/markdown

# Calculator project | Module 1 Sprint 2

A simple Python package for performing basic arithmetic operations:

    -Addition
    -Subtraction
    - Multiplication
    - Division
    -Finding the nth root

## Installation

You can install this package directly from PyPI using pip:

    pip install calculator_turing_IS

### Usage

Calculator class has methods like below:

- add(number)		Adds the given number to the stored result.
- sub(number)		Subtracts the given number from the stored result.
- mul(number)      - Multiplies the stored result by the given number.
- div(number)      - Divides the stored result by the given number. (Cannot divide by zero)
- root(number)	    Computes the nth root of the result. (Cannot be zero or an even root of a negative number)

- reset()			Resets the result to 0.

-if you print object then you will see output of the last result

Example of using after installation:

    from calculator.calculator import Calculator

    calc = Calculator()

    print(calc.add(10))  # Output: 10
    print(calc.sub(2))   # Output: 8
    print(calc.mul(3))   # Output: 24
    print(calc.div(3))   # Output: 8
    print(calc.root(3))  # Output: "2"
    print(calc) # Output: "2"
    calc.reset()
    print(calc) # Output: "0"






