# searching medium

How Many Pairs Match?

The memory-game rematch: your guesses vs. the answer card, position by position. 🧠

You get your guesses and the true answers — two lists of the same length. Count the positions where they match and print the count.

Example:

Input: guesses = ["red", "blue", "green"], answers = ["red", "green", "green"] Output: 2

Position 0 matches (red = red) and position 2 matches (green = green), but position 1 doesn't (blue ≠ green) — 2 matches total.

💡 need a hint?

srch-pairs-match.py🔒 given lines are locked — write your code in between
loading...