A Basic arthimetic Operators modules
Project description
A brief description of what your project does and its purpose. python basic arthimetic operators
def add(a, b): """ Add two numbers.
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): """ Subtract one number from another.
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): """ Multiply two numbers.
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): """ Divide one number by another.
Parameters:
a (int or float): The numerator.
b (int or float): The denominator.
Returns:
float: The result of a divided by b.
Raises:
ZeroDivisionError: If b is zero.
"""
return a / b
def mod(a, b): """ Calculate the modulus of one number by another.
Parameters:
a (int or float): The dividend.
b (int or float): The divisor.
Returns:
int or float: The remainder of a divided by b.
"""
return a % b
def exp(a, b): """ Raise one number to the power of another.
Parameters:
a (int or float): The base.
b (int or float): The exponent.
Returns:
int or float: The result of a raised to the power of b.
"""
return a ** b
def mass_prince(): """ Print a welcome message for users regarding Python package management.
This function displays a friendly greeting to inform users about
pushing and pulling Python packages, encouraging them to engage
with the package management process.
"""
print("Hi Welcome to the pushing and pulling the python packages")
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
Close
Hashes for vishwa_data_python-111.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e6aab424bab15918d449e8136cbea0747584bdf82e49355af6918c58d54fcb2 |
|
MD5 | 3fef2c28cd46e65aad3de92e48cfc679 |
|
BLAKE2b-256 | 98156a982cb7ff51ac4df74b8345b361833ef9eb5ad5db5e7f27d697731f3a67 |