def passport_valid(
    passport: str,
    required_fields: tuple[str, str, str, str, str, str, str] = (
        "byr",
        "iyr",
        "eyr",
        "hgt",
        "hcl",
        "ecl",
        "pid",
    ),
) -> bool:
    """Check is a passport is valid, by having all required fields in it."""

    fields_in_passport = [field in passport for field in required_fields]

    return all(fields_in_passport)