Skip to main content

This is a collection of functions from an assigment, that i could not be bothered to have on the top of my new project. They include the functions:

“gen_labels_letters(n)”, this generates a List of n length, of max length 24, of letters from A to Z

“gen_labels(n)”, this generates a list of n length with names of “L1, L2, … , Ln”

“permute(L)”, permutes a given list L

“pairs(L)”, pairs elements of a given list L, with the condition that a < b

“canonical_triplets(A, B)”, Makes pairs of with all combinations from A and B, so [(A[1], B[1], (A[1], B[2]), … , (A[n], B[1]), … , (A[n], B[n])]

“anchored_triplets(L, R)”, takes “canonical_triplets(L, R) + canonical_triplets(R, L)” and outputs that.

Change Log

0.0.1 (24/02/2022)

  • First version

0.0.2 (24/02/2022)

  • added import random to hopefully make a function work

0.0.3 (24/02/2022)

  • added ‘import string’ to make another function work :)))))

  • added more the README

0.0.4 (24/02/2022)

  • Improved the pairs function, so L1 > L10

  • Removed unnecessary code

0.0.5 (24/02/22)

  • removed some test code i accidentally uploaded, so everytime this was imported it was spit out a list

Metadata

Release files for aflevering3-tree 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aflevering3-tree 0.0.5
File Size Uploaded Provenance Actions
aflevering3_tree-0.0.5.tar.gz 3.1 kB Without provenance Details for aflevering3_tree-0.0.5.tar.gz

Release files / aflevering3_tree-0.0.5.tar.gz

Download URL aflevering3_tree-0.0.5.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
55f7557a2bbf61e51ded04308e057a7acb2594014152bdf9d46521b3bade7d41
BLAKE2b-256 checksum
How to use checksums
7f51281b05f7e934869823b84e547d5fdfc131988cf6727ca9bdd00be8c6221e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Security for aflevering3-tree 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.5 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page