Skip to main content

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


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 details)

Uploaded Source

Built Distribution

PyCombs_YM-1.0.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file PyCombs-YM-1.0.0.tar.gz.

File metadata

  • Download URL: PyCombs-YM-1.0.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for PyCombs-YM-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b87803dae81f2c501e283f3838e020bca394836c6be68d10d0cca48e754c97d8
MD5 6b75acbf6621366761e8e83536da7c12
BLAKE2b-256 8fddb8addf465563b8b098a4b7eb2874a9e0a0866944c5cce5828fadf50f05d7

See more details on using hashes here.

File details

Details for the file PyCombs_YM-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: PyCombs_YM-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for PyCombs_YM-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f87171d64c0f77c27a040eacf5f1e4fc099c6b5e7e5fb731f88db4b4bef31fc1
MD5 99e947bc2e633928aea3c4d775383196
BLAKE2b-256 ef188ae18c89f454b2865b1dae85af14bf07410c6f4cbcb92acd94a708b29542

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page