Karakter Unik 03 Set dan Panjang Perbandingan

class UniqueCharsSet(object):

    def has_unique_chars(self, string):
        if string is None:
            return False
        return len(set(string)) == len(string)
Oluwafunmilayo C. Sofuwa