Trying to publish something
Project description
============================================================== Classes Documentation
-
Class: Mather
Description: A simple class for performing mathematical operations like addition and subtraction.
Methods:
- init(self): Constructor method to initialize the class with a default value for showProgress.
- add(self, x, y): Method to add two numbers x and y. Displays a progress message if showProgress is True.
- sub(self, x, y): Method to subtract y from x. Displays a progress message if showProgress is True.
Usage:
# Usage example: m = Mather() result = m.add(5, 3) # Output: 8
Explanation:
- The add method adds two numbers and returns the result.
- The sub method subtracts the second number from the first and returns the result.
-
Class: Randomer
Description: A class for generating random integers and floating-point numbers within a specified range.
Methods:
- init(self): Constructor method to initialize the class with default values for start, end, and showProgress.
- random_integer(self, start=0, end=100): Method to generate a random integer within the specified range [start, end].
- random_all(self): Method to generate a random floating-point number between 0 and 1.
Usage:
# Usage example: r = Randomer() integer = r.random_integer() # Output: Random integer between 0 and 100 random_num = r.random_all() # Output: Random floating-point number between 0 and 1
Explanation:
- The random_integer method generates a random integer within the specified range.
- The random_all method generates a random floating-point number between 0 and 1.
Make sure to set showProgress attribute to True if you want to see progress messages while using the classes.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file radars-0.0.2.tar.gz.
File metadata
- Download URL: radars-0.0.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5a368e8ea86cb8ea6a3514187944656cc3fe955e4e1ac047052c80d88f6bebb
|
|
| MD5 |
5d1e5053390dde71823ecd51c20e1fb7
|
|
| BLAKE2b-256 |
6b41c227e38e146c99e3b9d9329ab274f5016c4baba46ddddd0b51942cefe6d7
|
File details
Details for the file radars-0.0.2-py3-none-any.whl.
File metadata
- Download URL: radars-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4536c2fdf7bb20a2baa688d4e928b1808441a92b48be1a87188bdee328634c5
|
|
| MD5 |
e3fa5caa63b5480edc054437640b06fa
|
|
| BLAKE2b-256 |
f93df077ade0c6e6221bcc1b0492dd7356f974cd5e0c9bd68647ed025d6ddc2c
|