Skip to main content

Python library that takes in a list/tuple and returns a hash map with an element:count of element in the list/tuple as a key:value pair

Project description

py_functions

Python library that takes in a list/tuple and returns a hash map with an element:count of element in the list/tuple as a key:value pair

py_counter


DESCRIPTION:

py_counter is used to make element counting easier to perform duplicate element finding, or simply count of elements(integers or strings) in a list/tuple easier.


USAGE:
import package name
Create an instance of the class
Create variable and call the counter method referencing the instance that we created


SYNTAX:

import py_counter
variable_name = py_counter.counter([list/tuple])
print(variable_name)


EXAMPLE CODE:

import py_counter
word = py_counter.counter([list/tuple])
print(word)

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

py_counter-1.0.tar.gz (2.2 kB view hashes)

Uploaded Source

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