The package
combinations is a package used to generate all possible combinations of a given length k
on a given set. The set is given as a list, and k must be equal to 0 or positive.
Usage examples
from combinations import combinations
l = [89,32,6,7]
k = 2
combs = combinations.find_combinations(l, k)
print(combs)
Output :
[[89, 32], [89, 6], [89, 7], [32, 6], [32, 7], [6, 7]]
Metadata
Release files for PyCombs-YM 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| PyCombs-YM-1.0.0.tar.gz | 15.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PyCombs_YM-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.7 kB
Release files / PyCombs-YM-1.0.0.tar.gz
| Download URL | PyCombs-YM-1.0.0.tar.gz |
|---|---|
| Size | 15.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b87803dae81f2c501e283f3838e020bca394836c6be68d10d0cca48e754c97d8
|
|
BLAKE2b-256 checksum How to use checksums |
8fddb8addf465563b8b098a4b7eb2874a9e0a0866944c5cce5828fadf50f05d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9
|
Release files / PyCombs_YM-1.0.0-py3-none-any.whl
| Download URL | PyCombs_YM-1.0.0-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f87171d64c0f77c27a040eacf5f1e4fc099c6b5e7e5fb731f88db4b4bef31fc1
|
|
BLAKE2b-256 checksum How to use checksums |
ef188ae18c89f454b2865b1dae85af14bf07410c6f4cbcb92acd94a708b29542
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9
|