def sum_pots(pots: str, offset: int) -> int:
    """
    Sums the pots according to their position. Offset indicates which
    pot is the "zero" pot.
    """
    return sum([i - offset if p == '#' else 0 for i, p in enumerate(pots)])