A module for seven grade of high school
Project description
fruitmod Library
This library provides a collection of utility functions for performing various mathematical and numerical operations. Each function is named after a fruit, and the functionality varies from basic arithmetic to more complex operations.
Functions:
-
sib(n):
- Calculates the factorial of a given number
n.
- Calculates the factorial of a given number
-
golabi(a, b):
- Computes the sum of all integers between
aandb(inclusive).
- Computes the sum of all integers between
-
tameshk(a, b):
- Returns the larger of the two numbers
aandb.
- Returns the larger of the two numbers
-
porteghal(n):
- Finds the largest perfect square less than or equal to
n.
- Finds the largest perfect square less than or equal to
-
talebi(n):
- Counts the number of digits in the integer
n.
- Counts the number of digits in the integer
-
havij(n):
- Reverses the digits of the integer
n.
- Reverses the digits of the integer
-
kivi(n):
- Checks if
nis a perfect number (sum of divisors excluding itself equalsn). - Returns "yes" if perfect, otherwise "no".
- Checks if
-
khiar(n):
- Checks if
nis a prime number. - Returns "yes" if prime, otherwise "no".
- Checks if
-
holoo(a, b):
- Finds the greatest common divisor (GCD) of
aandb.
- Finds the greatest common divisor (GCD) of
-
ananas(n):
- Generates the nth Fibonacci number.
-
aloo(n, a):
- Counts the occurrences of the digit
ain the numbern.
- Counts the occurrences of the digit
-
moz(n):
- Counts the number of divisors of
n.
- Counts the number of divisors of
-
anar(n):
- Returns the absolute value of
n.
- Returns the absolute value of
-
angoor(n):
- Prints each digit of
non a new line.
- Prints each digit of
-
albaloo(a, b):
- Prints all integers between
aandb(inclusive).
- Prints all integers between
Note:
- The library assumes that inputs are integers and does not handle invalid inputs or edge cases explicitly.
- Some functions print results directly, while others return values.
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
fruitmod-0.5.6.tar.gz
(4.0 kB
view details)
File details
Details for the file fruitmod-0.5.6.tar.gz.
File metadata
- Download URL: fruitmod-0.5.6.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98cc4c929f6d6a1ef9560680df79f732bcba1de4f370cb6fc5f95197108f2d66
|
|
| MD5 |
49e48526b3b69a0d061a8ab44fdb7c5a
|
|
| BLAKE2b-256 |
b627385b2aebc4ce9db31f08a91eae581c3ca7b36ccecfa948e87c2e9492801a
|