Check if list of keys exist in dictionary [duplicate] January 3, 2023 by Tarik Use all(): if all(name in grades for name in students): # whatever