Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vishwa_data_python-111.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vishwa_data_python-111.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file vishwa_data_python-111.2.tar.gz.

File metadata

  • Download URL: vishwa_data_python-111.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for vishwa_data_python-111.2.tar.gz
Algorithm Hash digest
SHA256 e0259260b202bdfbcc454f7ff739f90647b306c2135f5afa23126c5265cdbebd
MD5 d9b901792167a87e2588a05b8e46646e
BLAKE2b-256 536c7f32d765d4a253bcc0ce142aa007fd9f983afde3c3e2c494f23b985de55a

See more details on using hashes here.

File details

Details for the file vishwa_data_python-111.2-py3-none-any.whl.

File metadata

File hashes

Hashes for vishwa_data_python-111.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9e6aab424bab15918d449e8136cbea0747584bdf82e49355af6918c58d54fcb2
MD5 3fef2c28cd46e65aad3de92e48cfc679
BLAKE2b-256 98156a982cb7ff51ac4df74b8345b361833ef9eb5ad5db5e7f27d697731f3a67

See more details on using hashes here.

Supported by

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