Using timestamp as a key in python dict : #My code 
    import time
    timestamp = lambda: int(round(time.time() * 1000))
    a = [1 ,2 ,3 , 4 , 5]
    b = {}
    for i in a:
        b[timestamp()] = i
    
    print(b)

#My output

> {1535959066086: 5}

#The problem 

The timestamp is not unique... The process is too fast that the timestamp stays the same and it does not make different keys any advice to have a different timestamp would be appreciated 