Skip to content

cipherML/Simple-Calculator-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Calculator

A calculator with the basic functions and a customizable, implemented in Python.

Table of contents

Clone

Run this in your terminal:

https://github.com/cipherML/Simple-Calculator-python.git

Important: Python 3.6 or 3.7 is needed to run the toolbox.

  • IDE Pycharm

Mathematical Operations

  • Addition (+)
  • Subtraction (-)
  • Multiplication (*)
  • Division (/)
  • Power (^) ")
  • Square-root (&)
  • mod (%)
  • floor div (//)

Module examples

Addition

Calulator: 14+77
ans= :  91.0

Multiplication

Calulator: 11*5
ans= :  55.0

Power

Calulator: 10^3
ans= :  1000.0

Square-root

Calulator: 49&
ans= :  7.0

mod

Calulator: 51%5
ans= :  1,0

Run

from myCalculator import TheCalculator

exe = TheCalculator()
try:
    while True:
        ans = exe.calc(input("Calculator:"))
        print("ans= : ", ans)
except KeyboardInterrupt:
    print("\n\n Thank You.! Have a Good Day")

About

A calculator with the basic functions and a customizable

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages