#K75022. Unique Characters Checker
Unique Characters Checker
Unique Characters Checker
You are given a string s. Your task is to determine whether every character in the string is unique. In other words, check if no character appears more than once. If all characters are distinct, print True
; otherwise, print False
.
The problem can be mathematically expressed as: Determine if \[ |s| = |\{ s_i : 1 \leq i \leq n \}\| \] where s is the input string of length n and s_i represents its i-th character.
inputFormat
The input consists of a single line containing the string s. The string may consist of alphabets, digits, or symbols.
outputFormat
Output True
if the string has all unique characters; otherwise, output False
.
abcdef
True