def new_sample(path, i):
    """
    Returns the i-th line of a text file.

    path: indicates the location of the sample_paragraphs.txt file in your directory.

    i: a non-negative interger that indicates which line to return.
    Lines are 0-indexed, so the 0-th line is the top line of the file.
    """
    with open(path) as f:
        for _ in range(i):
            next(f)  # Discard first i-1 lines
        return next(f).strip()