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.2.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for sandypackages-1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c298b7f3e5707dc091a683ed48131fb21f439333f4b2278808983675b317aa0c |
|
MD5 | 2d9f8ef57bdb51b883fef20d796dfbd6 |
|
BLAKE2b-256 | 26d919d5093f847194deb6552d3c22f78bd97d169e327bac3ae65e6dc7eb9eef |