Skip to main content

Return the entire alphabet except one (or more) letters.

Project description

A dumb Python utility that returns the full alphabet with one or more letters removed. Shoutout to Alberta Tech for the idea. Thought it was silly and wanted to do it.

Installation

pip install alphabet-except

Usage

from alphabet_except import except_letter, except_letters

# Exclude a single letter
except_letter('e')
# → 'abcdfghijklmnopqrstuvwxyz'

# Uppercase alphabet
except_letter('E', case='upper')
# → 'ABCDFGHIJKLMNOPQRSTUVWXYZ'

# Both cases
except_letter('e', case='both')
# → 'abcdfghijklmnopqrstuvwxyzABCDFGHIJKLMNOPQRSTUVWXYZ'

# Exclude multiple letters
except_letters('a', 'e', 'i', 'o', 'u')
# → 'bcdfghjklmnpqrstvwxyz'

# Multiple letters, both cases
except_letters('a', 'e', 'i', 'o', 'u', case='both')
# → 'bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ'

API

except_letter(letter, case='lower')

Parameter Type Description
letter str Single letter to exclude
case str 'lower', 'upper', or 'both'

except_letters(*letters, case='lower')

Same as above but accepts multiple letters to exclude.

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

alphabet_except-0.1.0.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alphabet_except-0.1.0-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

Details for the file alphabet_except-0.1.0.tar.gz.

File metadata

  • Download URL: alphabet_except-0.1.0.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for alphabet_except-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c9a609c6f7967f8fa829d1eafb682b5e8656a7df1406138047e784d5fdffaa1b
MD5 4f7d9499865453dc1610f13d4341bf64
BLAKE2b-256 c0b0a943572d4f52de548e8c66b5184d93ee27dafccd0804c16f03cca33c5059

See more details on using hashes here.

File details

Details for the file alphabet_except-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for alphabet_except-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 902e77627cc3b77cf3989518568a3dddfe6b2474a6997c840908afee4944102f
MD5 0720a1b423d89a230b69c394a4c6226d
BLAKE2b-256 60845120522c2a3d4c425f42d5afd4aad71c26be4240d5b6d96ecbf3b68e552e

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