Check if Key exists in Dictionary (or Value) with Python code

Check if Key exists in Dictionary (or Value) with Python code