List modifying package
Project description
Pynlist Python module:
It is a module that allows simple and basic tasks related to lists to be performed in an efficient manner using built-in methods
Installation:
'''pip install pynlist'''
How to use:
1. emax and omax:
These methods take in a list and return a single value (The maximum even or odd number in the list respectively.)
x.emax(my_list)
print(x)
2. emin and omin:
These methods take in a list and return a single value (The minimum even or odd number in the list respectively.)
x.emin(my_list)
print(x)
3. esum and osum:
These methods take in a list and return a single value(The sum of all the even or odd numbers in the list respectively.)
x.esum(my_list)
print(x)
4. prime_search:
This method takes in a list and and returns the prime numbers(if any) in a list format.
x.prime_search(my_list)
print(x)
5. duplicate_search:
This method takes in a list and and returns the duplicates (numbers or strings,if any) in a list format.
x.duplicate_search(my_list)
print(x)
6. quick_list:
This method takes in two arguments and returns a list generated at random based off the given arguments.
x.quicklist(length=int,max_number=int)
print(x)
License:
Copyright (c) 2020 Subhodip Sinha Choudhury Read LICENSE for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.