from itertools import islice


def head(filename, lines=5):
    """
    Returns the first few lines of a file.
    
    filename: the name of the file to open
    lines: the number of lines to include
    
    return: A list of the first few lines from the file.
    """
    with open(filename, "r") as f:
        return list(islice(f, lines))