A very simple example module for basic arithmetic operations.
Project description
A Sample Simple Python Module
This package provides a very simple example module with basic arithmetic operations.
Installation
You can install the package locally:
git clone https://github.com/hongtaoh/htpymodule
pip install .
or through PyPI:
pip install htpymodule
Usage
from htpymodule import add, subtract, multiply, divide
print(add(1, 2)) # Output: 3
print(subtract(5, 3)) # Output: 2
print(multiply(4, 2)) # Output: 8
print(divide(10, 2)) # Output: 5.0
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
htpymodule-0.2.tar.gz
(1.6 kB
view details)
Built Distribution
File details
Details for the file htpymodule-0.2.tar.gz
.
File metadata
- Download URL: htpymodule-0.2.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 456f67f65971546e5bf69920455de581fa6bb7370fc209a563ec317937f0c02f |
|
MD5 | bdbb940ed427612dca02297abd2598f8 |
|
BLAKE2b-256 | 8c54138ce0fc1939decbc9aa05ec50664c94e7083434ce1b38346896a6ed5b2a |
File details
Details for the file htpymodule-0.2-py3-none-any.whl
.
File metadata
- Download URL: htpymodule-0.2-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed958ed411d09dc292dd42e0cfdb4fe52a2fcf7c478e0907e9dd07119b8819c3 |
|
MD5 | a24a15dfa5ba8882379fbad3d97f2a3a |
|
BLAKE2b-256 | be4cab96384442f67453e7980439a74a30cb587dd629e8a5cb93ce9d9b78b8b2 |