Store the (student, subject) rows in expected that are missing from submitted in result.
import pandas as pd
expected = pd.DataFrame({"student": ["A", "A", "B", "B", "C"], "subject": ["Maths", "Science", "Maths", "Science", "Maths"]})
submitted = pd.DataFrame({"student": ["A", "B", "C"], "subject": ["Maths", "Science", "Maths"]})Store your final answer in a variable named result.
Run your code to see the output here.