simplecal-umar 0.0.1__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.
@@ -0,0 +1,4 @@
1
+ from .add import add
2
+ from .sub import sub
3
+ from .mul import mul
4
+ from .divide import div
simplecal_umar/add.py ADDED
@@ -0,0 +1,2 @@
1
+ def add (a,b):
2
+ return a + b
@@ -0,0 +1,4 @@
1
+ def div(a,b):
2
+ if b == 0:
3
+ raise ValueError("Cannot divide by zero")
4
+ return a / b
simplecal_umar/main.py ADDED
@@ -0,0 +1,19 @@
1
+ from add import add
2
+ from sub import sub
3
+ from mul import mul
4
+ from divide import div
5
+
6
+ input1 = float(input("Enter first number: "))
7
+ input2 = float(input("Enter second number: "))
8
+ result_add = add(input1, input2)
9
+ result_sub = sub(input1, input2)
10
+ result_mul = mul(input1, input2)
11
+ try:
12
+ result_div = div(input1, input2)
13
+ except ValueError as e:
14
+ result_div = str(e)
15
+
16
+ print(f"Addition: {result_add}")
17
+ print(f"Subtraction: {result_sub}")
18
+ print(f"Multiplication: {result_mul}")
19
+ print(f"Division: {result_div}")
simplecal_umar/mul.py ADDED
@@ -0,0 +1,2 @@
1
+ def mul (a,b):
2
+ return a * b
simplecal_umar/sub.py ADDED
@@ -0,0 +1,2 @@
1
+ def sub(a,b):
2
+ return a - b
@@ -0,0 +1,18 @@
1
+ Metadata-Version: 2.4
2
+ Name: simplecal-umar
3
+ Version: 0.0.1
4
+ Summary: A basic arithmetic calculator module
5
+ Author: Umar
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: Operating System :: OS Independent
8
+ Requires-Python: >=3.8
9
+ Description-Content-Type: text/markdown
10
+
11
+ # simplecal-umar
12
+
13
+ A simple Python library for basic arithmetic operations (addition, subtraction, multiplication, and division).
14
+
15
+ ## Installation
16
+
17
+ ```bash
18
+ pip install simplecal-umar
@@ -0,0 +1,10 @@
1
+ simplecal_umar/__init__.py,sha256=u6qV3K9xutW3ueXne0ae4xLC2G1v6b2wbQ5CmQL4k1U,89
2
+ simplecal_umar/add.py,sha256=ll_qutlUZf3WeUkMhrVYGAnA3DFT_iSJkA1soURWQJQ,32
3
+ simplecal_umar/divide.py,sha256=jM1j1ANNHpEwqt1yH9dNf8HbORRpNWfG-5d_Bz7wE8U,98
4
+ simplecal_umar/main.py,sha256=Yh8EOFzL6_XLY3AWytRuPw2njegrCqXFzIK7OEZXguM,534
5
+ simplecal_umar/mul.py,sha256=_OVWWawNxHGJtODhLFIRut7E2CqjMUyshVKWDVxdJM0,32
6
+ simplecal_umar/sub.py,sha256=nbfNqUt7PCYY6PS6KZOYKU4UX1vb_JtJtQJASW6d8qs,31
7
+ simplecal_umar-0.0.1.dist-info/METADATA,sha256=TTu3QXy_6RQVupRjzlXq3ExA6vbLTQcIQyAW80i7JbY,476
8
+ simplecal_umar-0.0.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
9
+ simplecal_umar-0.0.1.dist-info/top_level.txt,sha256=zsGTtmfAslDeB7If1vb20LeIt61I3t354pVr_hKTOXc,15
10
+ simplecal_umar-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ simplecal_umar