dsCheck if a key exists in a dictionary python This is a Python Program to check if a given key exists in a dictionary or not. Problem…byJohn