A Granicus content workflow needs to validate a string before processing it. Implement an algorithm that returns True when every character appears exactly once, and False when any character appears more than once.
Character comparisons are case-sensitive, and spaces and punctuation count as characters. For example, A and a are different characters.
Implement has_unique_characters(s), where:
s, a string containing zero or more characters.True if no character occurs more than once; otherwise, return False.def has_unique_characters(s):