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.

  9. selection_sort() - This function sorts a list of integers in ascending order using the selection sort algorithm. - This algorithm works by iteratively selecting the smallest element from the unsorted portion of the list and swapping it with the first element of the unsorted portion. - After each iteration, the boundary between the sorted and unsorted portions of the list shifts, expanding the sorted section by one element.

  10. palindrome_number_pattern() - This function generates a number pyramid pattern resembling a palindrome structure. - It prints a symmetrical pattern of numbers where each row contains numbers that first descend from a given number and then ascend back to the same value, creating a mirrored effect. - The function also adds leading spaces to center the numbers, producing a pyramid-like shape.

Documentation

For detailed documentation, see: GitHub

Author

Created by: abuawaish7

Badges

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.2(24/09/2024)

  • Second Release

  • Added Docstring for every function

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

Uploaded Source

Built Distribution

awaish_pkg-1.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file awaish_pkg-1.2.tar.gz.

File metadata

  • Download URL: awaish_pkg-1.2.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for awaish_pkg-1.2.tar.gz
Algorithm Hash digest
SHA256 23b3993bc2a9f94c640cede21a37abeec5fab2ae889db762a78d9200e7c63eaa
MD5 3b219c515be4c78d6abab2a9e2b75212
BLAKE2b-256 515ab35b1529c19c398d334f7f6773a737bab1bc90eaf79a47c1bee559aea7c2

See more details on using hashes here.

File details

Details for the file awaish_pkg-1.2-py3-none-any.whl.

File metadata

  • Download URL: awaish_pkg-1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for awaish_pkg-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 67323701c559991f93a60ebe82179b374286fb6259ab79f12b23e80016f3a945
MD5 79f570be0dc337f63c33a7d221c4da03
BLAKE2b-256 a71105392829663983107644d8238f1b5b43e57c806a54a7d05b1d2ce0732a84

See more details on using hashes here.

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