def decode(line: str) -> list:
    """Generate binary list from string."""
    decoded = []
    for char in line:
        if char == ".":
            decoded.append(0)
        else:  # means char == "#"
            decoded.append(1)
    return decoded