remove if key = x in python code example Example: delete key from python dictionary dictionary.pop(key)