#C7103. Unique Characters Checker
Unique Characters Checker
Unique Characters Checker
Given a string, determine whether all characters in the string are unique. A string is said to have all unique characters if no character appears more than once. Mathematically, for a string S, the condition for uniqueness can be expressed as:
$$|S| = |\{c : c \in S\}|$$
The check is case-sensitive, meaning that uppercase and lowercase letters are considered different. Even an empty string should be considered as having all unique characters.
inputFormat
The input consists of a single line containing the string S. The string can contain letters, digits, symbols, or spaces.
outputFormat
Print True
if all characters in the string are unique, otherwise print False
.
hello
False