Skip to main content

making a s1mple logical operations

Project description

  1. rev(a, b) Changing a and b between them.

  2. shift_list(offset: int, list: str) Shifting the given list to the specified offset.

  3. create_number(lst: str) Creating a single number from the given list, ignoring non-integer values.

  4. sum_number(lst: str) Calculating the sum of the numbers in the given list, ignoring non-integer values.

  5. inputMas(n: int, sc='\n') Returning an array from the given numbers. The default separator is "\n", but it can be changed using sc.

  6. is_prime(n: int) -> bool Checking if the given number n is a prime number.

  7. factorial(n: int) -> int Calculating the factorial of a non-negative integer n.

  8. gcd(a: int, b: int) -> int Finding the greatest common divisor between two numbers a and b.

  9. lcm(a: int, b: int) -> int Finding the least common multiple between two numbers a and b.

  10. to_binary(n: int) -> int Converting the given integer n to its binary representation .

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

quickrev-0.3.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quickrev-0.3.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file quickrev-0.3.2.tar.gz.

File metadata

  • Download URL: quickrev-0.3.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for quickrev-0.3.2.tar.gz
Algorithm Hash digest
SHA256 69e772bc2d92cf89cc17fd30e6a01d1011963af767d4472e26a17319df9e8ec3
MD5 f00631090bf4d945cba16ec11b96bad6
BLAKE2b-256 c41490ddb76cfae455dfdee709703effa200728369336a401fd299fc042dabc6

See more details on using hashes here.

File details

Details for the file quickrev-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: quickrev-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for quickrev-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c28c1c65f5646eaae627c9c45aaf59f4dd76fe89ab43979b07e6fee69b68e206
MD5 5e14201db4de1aa6b003001106ec9afc
BLAKE2b-256 5b4a9bc669f8138b945f7ff92ff1fac287669a2f35d95a0397bb4a4bbce88b0a

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