Skip to main content

A Python library containing useful functions in the Algerian language

Project description

Package

A python library containing useful functions.

Installation:

pip install epydz

Example usage

from epydz import *

result = 5

lokan(result == 5, lambda: werili(result))

Functions:

werili: #takes any number of arguments and concatenates them into a string separated by sep. The resulting string is then printed to the console followed by end.

dekhel: #prompts the user for input and returns the user's response as a string.

lokan:# takes a boolean condition and a function result_fn. If condition is True, the function result_fn is called and its result is returned. Otherwise, None is returned.

ilokan: #similar to lokan, but returns a default value instead of None if the condition is false.

tsema: #returns a default value for use in ilokan.

akesam: #splits a string into a list of items based on a separator.

akelab: #returns a reversed list of items.

motawasit: #returns the average of a list of numbers.

nisf: #returns the median of a list of numbers

ahseb: #returns the number of words in a string.

dirr: #Loop for the specified maximum number (100) of iterations or until a non-None value is returned.

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

epydz-1.0.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

epydz-1.0.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

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