Skip to content

letters / alphabet [terminology]

Terminology

Usage

  • Use alphabet for the complete character set from which substitutions are generated.
  • Use letters for a relevant collection of letters that may not be a complete alphabet.
  • Avoid generic chars when completeness or domain matters.
alphabet = "abcdefghijklmnopqrstuvwxyz"

for letter in alphabet:
    cand = word[:i] + letter + word[i + 1:]