Skip to main content

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:

  1. sib(n):

    • Calculates the factorial of a given number n.
  2. golabi(a, b):

    • Computes the sum of all integers between a and b (inclusive).
  3. tameshk(a, b):

    • Returns the larger of the two numbers a and b.
  4. porteghal(n):

    • Finds the largest perfect square less than or equal to n.
  5. talebi(n):

    • Counts the number of digits in the integer n.
  6. havij(n):

    • Reverses the digits of the integer n.
  7. kivi(n):

    • Checks if n is a perfect number (sum of divisors excluding itself equals n).
    • Returns "yes" if perfect, otherwise "no".
  8. khiar(n):

    • Checks if n is a prime number.
    • Returns "yes" if prime, otherwise "no".
  9. holoo(a, b):

    • Finds the greatest common divisor (GCD) of a and b.
  10. ananas(n):

    • Generates the nth Fibonacci number.
  11. aloo(n, a):

    • Counts the occurrences of the digit a in the number n.
  12. moz(n):

    • Counts the number of divisors of n.
  13. anar(n):

    • Returns the absolute value of n.
  14. angoor(n):

    • Prints each digit of n on a new line.
  15. albaloo(a, b):

    • Prints all integers between a and b (inclusive).

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.7.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file fruitmod-0.5.7.tar.gz.

File metadata

  • Download URL: fruitmod-0.5.7.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

Hashes for fruitmod-0.5.7.tar.gz
Algorithm Hash digest
SHA256 a7df301a6e348ee44f799f89d84060720b043dd5c1b71f9ca0f2723aab881d1e
MD5 429ce0e539bb4615e40fe7352d3f2e27
BLAKE2b-256 d30f2253a9481da9b27b8f63ee334b2c900eaaa71e7615d556681ed435ccc0aa

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