isogram/isogram.py
def is_isogram(string):
    '''if the length of the string if the same as the
    unique elements in the string(set(string)
    is an isogram'''
    if type(string) != str:
        raise TypeError ('Argument not a string')
    elif string == "":
        return True
    elif (string, str) and len(string) != 0:
        string = string.lower()
        if "-" in string:
            string_new=string.replace('-', '')
            if len(string_new) == len(set(string_new)): 
                return True
            else:
                 return False
            
            
        elif ' ' in string:
            string_new = string.replace(" ", "")
            if len(string_new) == len(set(string_new)):
                return True
            else:
                return False
                

        elif len(string) == len(set(string)):
            return True
        else:
            return False
if the length of the string if the same as the
    unique elements in the string(set(string)
    is an isogram
if the length of the string if the same as the
unique elements in the string(set(string)
is an isogram
if the length of the string if the same as the unique elements in the string ( set ( string ) is an isogram
def is_isogram(string):
    if type(string) != str:
        raise TypeError ('Argument not a string')
    elif string == "":
        return True
    elif (string, str) and len(string) != 0:
        string = string.lower()
        if "-" in string:
            string_new=string.replace('-', '')
            if len(string_new) == len(set(string_new)): 
                return True
            else:
                 return False
        elif ' ' in string:
            string_new = string.replace(" ", "")
            if len(string_new) == len(set(string_new)):
                return True
            else:
                return False
        elif len(string) == len(set(string)):
            return True
        else:
            return False
def is_isogram ( string ) : if type ( string ) != str : raise TypeError ( 'Argument not a string' ) elif string == "" : return True elif ( string , str ) and len ( string ) != 0 : string = string . lower ( ) if "-" in string : string_new = string . replace ( '-' , '' ) if len ( string_new ) == len ( set ( string_new ) ) : return True else : return False elif ' ' in string : string_new = string . replace ( " " , "" ) if len ( string_new ) == len ( set ( string_new ) ) : return True else : return False elif len ( string ) == len ( set ( string ) ) : return True else : return False
if the length of the string if the same as the
unique elements in the string(set(string)
is an isogram
if the length of the string if the same as the unique elements in the string ( set ( string ) is an isogram
'''if the length of the string if the same as the
    unique elements in the string(set(string)
    is an isogram'''
string