#K57192. Unique Characters Checker
Unique Characters Checker
Unique Characters Checker
You are given a string and must determine if all the characters in the string are unique. The check is case sensitive: for example, 'Aa' is considered as two unique characters whereas 'AaA' contains a duplicate. The input string consists solely of alphabetic characters (and possibly an empty string). This problem requires you to implement a function to verify uniqueness of characters in the given string.
Note: An empty string is considered to have all unique characters.
The answer should read input from stdin
and output the result to stdout
as either True
or False
.
inputFormat
The input will consist of a single line containing a string s. The string can be empty or contain alphabetic characters. Read the input from stdin
.
outputFormat
Output True
if every character in the string is unique, otherwise output False
. The output should be written to stdout
.
Python
True