def print_chunks(client, num=-1):
    """ Prints a list of the [num] most recently learned chunks (or all if num=-1)"""
    chunks = client.execute_command("pc").split("\n")
    if num > 0:
        chunks = chunks[0:num]
    return "\n".join(reversed(chunks))