Skip to main content

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


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)

Uploaded Source

Built Distribution

sandypackages-1.2-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page