python - updated dictionary with same key value pair : <p>I've seem to hit a wall with dictionaries in python.
Is it possible to update a dictionary with the same key value pair.
Whenever I try to update my dictionary with the same key value pair, the update action is not performed, it sort of ignores the pair to update because of duplication.  Is there some limitation to updating key value pair duplicates in a python dictionary?</p>

<p>I have posted my code below for demonstration.
Thanks Inadvance.</p>

<pre><code>import time
import collections
from random import randrange


def faceCard(card,cardNum):
    cDict = collections.OrderedDict()
    print("Card:",card)
    if card == 11:
        cDict["Jack"] = 10
    elif card == 12:
        cDict["Queen"] = 10
    elif card == 13:
        cDict["King"] = 10
    elif card == 14:
        cDict["Ace"] = 11
    else:
        cDict[cardNum] = card

    return cDict

def main():
    pCards = collections.OrderedDict()
    dCards = collections.OrderedDict()

    while True:
        pCards.update(faceCard(randrange(2,15,1),"pCard1"))
        time.sleep(.25)
        dCards.update(faceCard(randrange(2,15,1),"dCard1"))
        time.sleep(.25)
        pCards.update(faceCard(randrange(2,15,1),"pCard2"))
        time.sleep(.25)
        dCards.update(faceCard(randrange(2,15,1),"dCard2"))
        time.sleep(.25)

        print("Player",pCards)
        print("Dealer",dCards)

        pCards.clear()
        dCards.clear()


if __name__ == "__main__":
    main()
</code></pre>
