QuickCalcKit 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
quickcalckit/__init__.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
__version__ = "1.0.0"
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def add(a, b):
|
|
5
|
+
return a + b
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def subtract(a, b):
|
|
9
|
+
return a - b
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def multiply(a, b):
|
|
13
|
+
return a * b
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def divide(a, b):
|
|
17
|
+
if b == 0:
|
|
18
|
+
raise ZeroDivisionError("division by zero")
|
|
19
|
+
return a / b
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def mean(values):
|
|
23
|
+
values = list(values)
|
|
24
|
+
return sum(values) / len(values) if values else 0.0
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
quickcalckit/__init__.py,sha256=V-gcPKLm1QLKNgf8LXIzXr5bYq8WZByndJ1tDJJiSzw,340
|
|
2
|
+
quickcalckit-1.0.0.dist-info/METADATA,sha256=Yl82ZFpbJkCAPl-CZwn0CDnnlzyNtAjqaCUrtTiOhaw,132
|
|
3
|
+
quickcalckit-1.0.0.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
4
|
+
quickcalckit-1.0.0.dist-info/RECORD,,
|