making a s1mple logical operations
Project description
-
rev(a, b) Changing a and b between them.
-
shift_list(offset: int, list: str) Shifting the given list to the specified offset.
-
create_number(lst: str) Creating a single number from the given list, ignoring non-integer values.
-
sum_number(lst: str) Calculating the sum of the numbers in the given list, ignoring non-integer values.
-
inputMas(n: int, sc='\n') Returning an array from the given numbers. The default separator is "\n", but it can be changed using sc.
-
is_prime(n: int) -> bool Checking if the given number n is a prime number.
-
factorial(n: int) -> int Calculating the factorial of a non-negative integer n.
-
gcd(a: int, b: int) -> int Finding the greatest common divisor between two numbers a and b.
-
lcm(a: int, b: int) -> int Finding the least common multiple between two numbers a and b.
-
to_binary(n: int) -> int Converting the given integer n to its binary representation .
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69e772bc2d92cf89cc17fd30e6a01d1011963af767d4472e26a17319df9e8ec3
|
|
| MD5 |
f00631090bf4d945cba16ec11b96bad6
|
|
| BLAKE2b-256 |
c41490ddb76cfae455dfdee709703effa200728369336a401fd299fc042dabc6
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c28c1c65f5646eaae627c9c45aaf59f4dd76fe89ab43979b07e6fee69b68e206
|
|
| MD5 |
5e14201db4de1aa6b003001106ec9afc
|
|
| BLAKE2b-256 |
5b4a9bc669f8138b945f7ff92ff1fac287669a2f35d95a0397bb4a4bbce88b0a
|