def write_horizontal_lict(file_name, lict):
    if ('.txt' not in file_name):
        file_name = (file_name + '.txt')
    row = ''
    for index in range(len(lict)):
        lict[index] = (str(lict[index]) + ', ')
        if (len((row + lict[index])) > 100):
            lict[(index - 1)] = (lict[(index - 1)] + '\n')
            row = lict[index]
        else:
            row = (row + lict[index])
    file = open(file_name, 'w')
    for term in lict:
        file.write(term)
    file.close()
def write_horizontal_lict(file_name, lict):
    if ('.txt' not in file_name):
        file_name = (file_name + '.txt')
    row = 
    for index in range(len(lict)):
        lict[index] = (str(lict[index]) + ', ')
        if (len((row + lict[index])) > 100):
            lict[(index - 1)] = (lict[(index - 1)] + '\n')
            row = lict[index]
        else:
            row = (row + lict[index])
    file = open(file_name, 'w')
    for term in lict:
        file.write(term)
    file.close()