from typing import Sequence


def _table(*rows: Sequence) -> str:
    """
    >>> _table(['a', 1, 'c', 1.23])
    '|a|1|c|1.23|'
    >>> _table(['foo', 0, None])
    '|foo|||'
    >>> print(_table(['multiple', 'rows', 0], ['each', 'a', 'list']))
    |multiple|rows||
    |each|a|list|
    """
    return '\n'.join([
        '|'.join(['', *[str(cell or '') for cell in row], '']) for row in rows
    ])