Skip to main content

No project description provided

Project description

AFL_2_MATH

Before you start make sure you already run this command below:
pip install AFL_2_MATH

and this is example on how your code should look like

from AFL_2_MATH import Himpunan #Very Important


# Create a set with mixed types: int, str, tuple, and another Himpunan
A = Himpunan(1, "a", (2, 3), ("x", "y"), [4, 5])
print(A)  # Output: {1, a, (2, 3), {x, y}, (4, 5)}

# Add and remove elements
A += "z"
A -= 1

# Set operations
B = Himpunan("a", (2, 3), "z")
print("Union:", A + B)
print("Intersection:", A / B)
print("Difference:", A - B)
print("Symmetric Difference:", A * B)
print("Cartesian Product:", A ** B)

# Power set and subsets
print("Power set size:", abs(A))
print("All subsets:", A.ListKuasa())

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

afl_2_math-4.0.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file afl_2_math-4.0.tar.gz.

File metadata

  • Download URL: afl_2_math-4.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for afl_2_math-4.0.tar.gz
Algorithm Hash digest
SHA256 883bff31be227ff9df673294be58206b04021bdf1154f6dea418b5a5fe9eb3ce
MD5 86426b2ca6edb3710f2e87b1a571d907
BLAKE2b-256 5b405db34c96ca6db3bf45a314dc404077a4860295076d41378507f8edc2b5cf

See more details on using hashes here.

Supported by

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