#C14726. Isogram Checker
Isogram Checker
Isogram Checker
Problem Statement: Given a string, determine whether it is an isogram. An isogram is a word or phrase without any repeating letters; however, spaces and hyphens are allowed to appear multiple times. Letter comparison is case-insensitive. Mathematically, if we let \( s \) represent the string after removing spaces and hyphens and converting all characters to lowercase, and let \( |s| \) be the length of this processed string, then the string is an isogram if and only if
\[ |s| = |\{ c : c \in s \}| \]
Your task is to read a string from stdin and print True
if it is an isogram, or False
otherwise.
inputFormat
The input consists of a single line containing a string. The string may include letters, spaces, and hyphens.
outputFormat
Output a single line: print True
if the input string is an isogram, otherwise print False
.## sample
lumberjack
True