Skip to main content

A simple package offering a collection of useful functions for enhanced productivity.

Project description

Project Title

This package comes with some useful functions that make your work easier. Here are the function names with their functionalities:

  1. ``add_list_index_element()`` - Takes a list of integers as input, computes the sum of the digits of each integer, and creates a new list containing these sums.

  2. ``stack()`` - Implements a simple stack data structure with a fixed size limit. Provides interactive operations for pushing and popping elements, allowing users to choose between pushing an element onto the stack, popping an element from the stack, or exiting the program.

  3. ``find_positive_and_negative()`` - Reads a list of integers from the user. - Separates the positive and negative numbers into two different lists. - Calculates the sum of the positive numbers and the sum of the negative numbers. - Displays the original list, the lists of positive and negative numbers, and their respective sums.

  4. ``factor_finder()`` - Finds all the factors of a given integer. - Prints each factor. - Calculates and prints the sum of all these factors.

  5. ``count_vowel_and_spaces()`` - Counts the number of vowels and spaces in a given input text. - Identifies and lists all the vowels present in the text. - Displays the original text, the count and list of vowels, and the count of spaces.

  6. ``prime_finder()`` - Determines whether a given number is prime. - Informs the user whether the number is prime or not through printed messages.

  7. ``even_and_odd()`` - Reads a list of integers from the user. - Separates the integers into two lists: one for even numbers and one for odd numbers. - Displays the lists of even and odd numbers, or informs the user if no even or odd numbers were provided.

  8. ``fibonacci_series()`` - Generates and prints the first n terms of the Fibonacci series, where n is provided by the user.

Documentation

For detailed documentation, see: - GitHub

Author

Created by: - abuawaish7

Badges

awaish_pkg

https://badge.fury.io/py/awaish_pkg.svg https://img.shields.io/badge/License-MIT-yellow.svg

Installation and Use

To install the package, use pip:

pip install awaish_pkg

To use the package in your Python script:

import awaish_pkg
help(awaish_pkg)

Change Log

1.1(01/04/2024)

  • First Release

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

awaish_pkg-1.1.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

awaish_pkg-1.1-py3-none-any.whl (4.5 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