Basic arithmatic operator modules
Project description
A brief description of what your project does and its purpose. Basic arithmatic operator modules
def add(a, b): """ Add two numbers together.
Parameters:
a (int or float): The first number to add.
b (int or float): The second number to add.
Returns:
int or float: The sum of a and b.
"""
return a + b
def sub(a, b): """ Subtract the second number from the first.
Parameters:
a (int or float): The number from which to subtract.
b (int or float): The number to subtract.
Returns:
int or float: The difference between a and b.
"""
return a - b
def mul(a, b): """ Multiply two numbers together.
Parameters:
a (int or float): The first number to multiply.
b (int or float): The second number to multiply.
Returns:
int or float: The product of a and b.
"""
return a * b
def div(a, b): """ Divide the first number by the second.
Parameters:
a (int or float): The numerator (the number to be divided).
b (int or float): The denominator (the number to divide by).
Returns:
float: The quotient of a divided by b.
Raises:
ZeroDivisionError: If b is zero, division by zero is not allowed.
"""
return a / b
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file subha_myproject-100.1.tar.gz.
File metadata
- Download URL: subha_myproject-100.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a662d4488b17c95b3fdeefed93cc5ed8cffd6cdb02b9a040d853059b7a0522d9
|
|
| MD5 |
09b0fc8089e59bb5e3f5fc28db2aa2ac
|
|
| BLAKE2b-256 |
ed8557bc74ce041e49566c6c02a8af089c92bc1bbe5457fe5ed7a2ec05e9a3cd
|
File details
Details for the file Subha_Myproject-100.1-py3-none-any.whl.
File metadata
- Download URL: Subha_Myproject-100.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cabfebb5d6e669362d5778daec0961c1dffd1568a010abde749fd953469c6bb7
|
|
| MD5 |
f5bcda2f42f91cc6f4ff5e0816f2d3e3
|
|
| BLAKE2b-256 |
4a095bec21ac10f422b1a85416d333a82b6346114c877a876496e3d50caff6f8
|