# searching medium

Find All the Matching Seats

The theater wants to know every seat where a fan of the target team is sitting. 🎟️

You get a list of teams (one per seat) and a target team. Print every seat position of a match, separated by commas on one line — or none if there are no fans.

Example:

Input: teams = ["red", "blue", "red", "green", "red"], target = "red" Output: 0,2,4

"red" sits at indices 0, 2, and 4 — collecting every match instead of stopping at the first gives that full list.

💡 need a hint?

srch-all-matching-seats.py🔒 given lines are locked — write your code in between
loading...