Skip to main content

The module counts how many unique characters are in the string or file it is processing.

Project description

Counting Unique Characters

This module allows you to count the unique characters that it receives upon entry. Works with files and strings.

Getting started A variable args is created to which all the arguments that were passed to the CLI during the execution of the create_parser() function are assigned.

In function file_check() receives an object args as an input and determines the type:

  • if args contains a file, then the load_file() file handler function is run and the contents of the file are passed to the unique_characters() function;
  • if args does not contain a file, but args contains a string, then that string is passed to the unique_characters() function

The unique_characters() function processes the string passed to it and returns the number of unique characters in that string.

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

unique_characters_TurchinskiyD-0.0.1.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file unique_characters_TurchinskiyD-0.0.1.tar.gz.

File metadata

File hashes

Hashes for unique_characters_TurchinskiyD-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c7b9adb38757c25d5270001fa7e2fb951cacdafb05c0eb486415aec07a59cd08
MD5 0776a8757ffa20c327583e066c9d5b96
BLAKE2b-256 d1632cb5fe49733128989ce27d1962c9c358c5f1f0beaf4ab9b14a5469239643

See more details on using hashes here.

Supported by

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