Python delete a value from dictionary and not the key
<p>Is it possible to delete a value from  a dictionary and not the key? For instance, 
I have the following code in which the user selects the key corresponding to the element that he wants to delete it , but I want do delete only the value and not the key ( the value is a list): </p>

<pre><code>if (selection == 2):
    elem = int(input("Please select the KEY that you want to be deleted: "))
    if dictionar.has_key(elem):
        #dictionar.pop(elem)
        del dictionar[elem]
    else:
        print("the KEY is not present ")
</code></pre>

<pre><code>dictionar = {}
elem = int(input("Please select the KEY that you want to be deleted: "))
if dictionar.has_key(elem)
    dictionar[elem] = ""
else:
    print("The KEY is not present")
</code></pre>

<p>This code checks if elem is in dictionar then turns the value into a blank string.</p>

python