Skip to main content

It can easily help you choose!

Project description

easy-choose

It can easily help you choose!


Installation

Use pip:

pip install --upgrade easy-choose


Usage

It's particularly simple to use. The code is as follows:

>>>import easy_choose as ec

>>>ec.choose(2, "A", "B", "C")

["A", "C"]

Of course, you can also use lists:

>>> ls = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0]

>>> ec.choose(5, *ls)

[1, 4, 4, 7, 5]

You can also keep them from duplicate elements:

>>> ec.choose(5, only=True, *ls)

[1, 4, 7, 5]

Tests

You can use ready-made test functions – just test and play!

Here's how:

>>> from easy_choose import tests as te

>>> te.testnumbers(number=5, num=3)

[1, 3, 3, 1, 2]



Version: 1.1.1

Author: Raskora

Github: https://github.com/Raskora/easy-choose

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

easy_choose-1.1.1.tar.gz (25.9 kB view hashes)

Uploaded Source

Built Distribution

easy_choose-1.1.1-py3-none-any.whl (4.2 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