Skip to main content

Trying to publish something

Project description

============================================================== Classes Documentation

  1. 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.
  2. 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


Download files

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

Source Distribution

radars-0.0.1.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

radars-0.0.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file radars-0.0.1.tar.gz.

File metadata

  • Download URL: radars-0.0.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for radars-0.0.1.tar.gz
Algorithm Hash digest
SHA256 dfefbe7e1e7fc88e8357dc2170d238444373d039b64140e0e96777690496a771
MD5 041c1dad13cb349c8e90494e602bc1c5
BLAKE2b-256 bce8269340c75e2d3fe4ab60a0168122f9ed10bf6588e623dc8b92c505d325cc

See more details on using hashes here.

File details

Details for the file radars-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: radars-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for radars-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95b959fc440e98da5d65e1f200153322e768cab739f324372ada01d71d986fa2
MD5 29d3557797b26be090c7c0da65d5a39b
BLAKE2b-256 c05cc5b1d34d7faab1b601014a98a2cef8f7f77fb8e38a3b0c7ecd32f34622c7

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