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]
Version: 1.0.8
Author: Raskora
Github: https://github.com/Raskora/easy-choose
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
easy_choose-1.0.8.tar.gz
(7.2 kB
view hashes)
Built Distribution
Close
Hashes for easy_choose-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cabcc52d2645ff5c21feb4d6f231869dc71439fecd9f0d123064c3e0958fe600 |
|
MD5 | dbb503d8d56318bce8e44c35433a8a4f |
|
BLAKE2b-256 | 47b44a985f2405dc9b3a0d8ce49d7d6447dc3bea55a91e53cb18fa87cc6e9dd3 |