from typing import List


def read_data() -> List[tuple]:
    """Return a list of tuples with digits and readouts."""
    with open("data.txt", "r") as file:
        data = file.readlines()
    return list(map(lambda x: (x[0].split(), x[1].split()), [line.strip().split(" | ") for line in data]))