'how to compare two list for a count

I have three lists

student_name_list = list(student_dict.keys())

it contains student names

student_enrolled_list = list(student_dict.values())
[ "Allen", "Jenny" , "Jane", ...]

it contains lists of courses enrolled by the student

[ ['SS118', 'CS328', 'CS307', 'SE110', 'SS152'], 
  ['CS220', 'DS3011', 'CS211', 'MT224'],
  ['CS217', 'SE110', 'MG223', 'AI2011'], ... ]

there is another exam lists

[ [datetime.date(2020, 1, 9), 3, 
  '01:45-04:45', 
  'CS211', 
  'Discrete Structures', 2, 'Harry Jackson'], ... ]

what i want is calculate how many clashed per student has student name list and enrolled list, both length is 200 where as exam list length is 26



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source