A package that generates all possible combinations in a given set as a list
Project description
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]]
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
PyCombs-YM-1.0.0.tar.gz
(15.2 kB
view hashes)
Built Distribution
PyCombs_YM-1.0.0-py3-none-any.whl
(15.6 kB
view hashes)
Close
Hashes for PyCombs_YM-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f87171d64c0f77c27a040eacf5f1e4fc099c6b5e7e5fb731f88db4b4bef31fc1 |
|
MD5 | 99e947bc2e633928aea3c4d775383196 |
|
BLAKE2b-256 | ef188ae18c89f454b2865b1dae85af14bf07410c6f4cbcb92acd94a708b29542 |