I have a dictionary that looks like that:
grades = { \'alex\' : 11, \'bob\' : 10, \'john\' : 14, \'peter\': 7 }
Assuming students as set
if not (students - grades.keys()): print("All keys exist")
If not convert it to set
if not (set(students) - grades.keys()): print("All keys exist")