def put_list_to(path_to_file: str, lines: list):
    """
    Write a list to a file in lines.

    :param str path_to_file: /path/to/file
    :param list lines: source list
    :return: str
    """
    with open(path_to_file, 'w') as fp:
        content = list()
        for line in lines:
            content.append('{}'.format(line))
        fp.write('\n'.join(content))
    return path_to_file