def permutations ( word ) :
    retval = math . factorial ( len ( word ) )
    frequencies = collections . Counter ( word )
    for i in frequencies [ :
        retval = retval / math . factorial ( frequencies [ i ] )
    return retval

def permutations ( word ) :
    retval = math . factorial ( len ( word ) )
    frequencies = collections . Counter ( word )
    for i in frequencies :
        retval = retval / math . factorial ( frequencies [ i ] )
    return retval

次に示すpythonコードの誤りを修正しなさい。