title: How to reset a dictionary for every one hour
body: <p>Is it possible to reset python dictionary in every one hour?</p>
  
  <p>Original dictionary:</p>
  
  <pre><code>d = {1: 5, 2: 1, 3: 2}
  </code></pre>
  
  <p>For every one hour the dictionary should be empty (or new dictionary should be created)</p>
  
  <pre><code>d = {}
  </code></pre>
  
  <p>But the program below  is not working</p>
  
  <pre><code>import time 
  d = {}
  
  d[1] = 5
  d[2] = 1
  d[3] = 2
  i = 1
  while i == 1:
  
      current = time.time()
  
      end = time.time()
      diff = end - current
      if diff == 60:
          d = {}
      print d
  </code></pre>