Answer :
Explanation:
You can use the SET INTERSECTION method.
Because intersection will give u the common elements.
And we can get their length by using len method.
Here is what the code would look like,
def matches(tickets, winner):
tickets = set(tickets)
winner = set(winner)
return len(tickets.intersection(winner))
Here is a shot to understand easier,

Answer and Explanation:
def matches(tickets,winner):
tickets = set(tickets)
winner = set(winner)
counter = 0 #To Count the common elements
for i in tickets: # Iterate over all the elements in tickets.
if i in winner: # Check the element in the winner list
counter = counter+1
return counter