import string


def make_title(line):
    """
    Edits the given line so that it can be used as a title.
    Edit operations include removing unnecessary punctuations and converting the text into title case
    :param line: line of the poem chosen as the title
    :return: title of the poem
    """

    # Removing punctuations at the end of the line
    for char in line[::-1]:
        if char in string.punctuation:
            line = line[:-1]
        else:
            break

    # Removing punctuations at the beginning of the line
    for char in line:
        if char in string.punctuation:
            line = line[1:]
        else:
            break
    return line.title()