def get_dimensions(table):
    """
    Returns columns, rows for a table.
    >>> get_dimensions([['row1', 'apple', 'llama'], ['row2', 'plum', 'goat']])
    (3, 2)
    >>> get_dimensions([['row1', 'apple', 'llama'], ['row2', 'banana']])
    (3, 2)
    """
    rows = len(table)
    try:
        cols = max(len(row) for row in table)
    except ValueError:
        cols = 0
    return (cols, rows)