Data_Analyst_PKG
Project description
def mod(a, b):
"""
Returns the modulus (remainder) of the division of a
by b
.
Parameters:
a (int, float): The dividend.
b (int, float): The divisor.
Returns:
int, float: The remainder when `a` is divided by `b`.
Example:
>>> mod(10, 3)
1
"""
return a % b
def floor(a, b):
"""
Returns the floor division (integer division result) of a
by b
.
Parameters:
a (int, float): The dividend.
b (int, float): The divisor.
Returns:
int, float: The largest integer less than or equal to the division of `a` by `b`.
Example:
>>> floor(10, 3)
3
"""
return a // b
def exp(a, b):
"""
Returns the result of raising a
to the power of b
.
Parameters:
a (int, float): The base number.
b (int, float): The exponent to raise `a` to.
Returns:
int, float: The result of `a` raised to the power of `b`.
Example:
>>> exp(2, 3)
8
"""
return a ** b
def mul(a, b):
"""
Returns the result of multiplying a
by b
.
Parameters:
a (int, float): The first number.
b (int, float): The second number.
Returns:
int, float: The product of `a` and `b`.
Example:
>>> mul(3, 4)
12
"""
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
sandypackages-1.1.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for sandypackages-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa1e461ee5a4a0e6e8b833cd14e8cce08be9d985111d16bc27a8acd8ab6e15cf |
|
MD5 | 94bbc91d5c8d3f1330beff35f515ea04 |
|
BLAKE2b-256 | 775c8fb484084e63dc2faa8450585536d62ec48893b4a0fc122134b577676f65 |