Basic arithmatic operator modules
Project description
A brief description of your project, outlining its purpose and key functionality. A lightweight Python package that provides basic arithmetic operations, including addition, subtraction, multiplication, division, modulus, and exponentiation.
def add(a, b): """ Adds two numbers together.
Parameters:
a (int or float): The first number.
b (int or float): The second number.
Returns:
int or float: The sum of a and b.
"""
return a + b
def sub(a, b): """ Subtracts the second number from the first.
Parameters:
a (int or float): The number to be subtracted from.
b (int or float): The number to subtract.
Returns:
int or float: The difference of a and b.
"""
return a - b
def mul(a, b): """ Multiplies two numbers together.
Parameters:
a (int or float): The first number.
b (int or float): The second number.
Returns:
int or float: The product of a and b.
"""
return a * b
def div(a, b): """ Divides the first number by the second.
Parameters:
a (int or float): The dividend (numerator).
b (int or float): The divisor (denominator).
Returns:
float: The result of dividing a by b.
Raises:
ZeroDivisionError: If b is zero.
"""
return a / b
def mod(a, b): """ Returns the remainder of the division of the first number by the second.
Parameters:
a (int or float): The dividend.
b (int or float): The divisor.
Returns:
int or float: The remainder when a is divided by b.
def project_name():
"""
Prints a message indicating that the project is being generated.
This function is a placeholder to demonstrate project initialization or
setup. It can be modified to include more functionality related to
project generation or configuration.
"""
print("Generate this project")
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_da-111.1.tar.gz.
File metadata
- Download URL: subha_da-111.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72195a5195107c4cb239902bee8d62ba7665979a938e1273cc8392b7c21f1cc7
|
|
| MD5 |
86c4732ead26167dc55e6ef46a1ef24b
|
|
| BLAKE2b-256 |
b402556d8234e7fcbd4a64e3638b6349ee0433c6bdc836760df1c6159f8488f4
|
File details
Details for the file Subha_DA-111.1-py3-none-any.whl.
File metadata
- Download URL: Subha_DA-111.1-py3-none-any.whl
- Upload date:
- Size: 3.5 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 |
0a5a6049a07b203d097224cc904591c68f4be41efb8d279f1767b7a1acf59c50
|
|
| MD5 |
9fa7bcc825a08de9c2485b81cbc3c7f8
|
|
| BLAKE2b-256 |
c0199ae84a9168a089a2e40e1173fac488230535c2e9082ec914ae9a2e2c4fb8
|