title: python iterating over dictionaries
body: <p>I have two dictionaries.I'm iterating over it one inside the other.
  I want to select the next item each time it iterates inside the inner loop rather than from the beginning.</p>
  
  <pre><code>dict1={'a':1 , 'b':2 , 'c':3}
  dict2={'x':10, 'y':20, 'z':30}
  
  for key,value in dict1:
     #do something
      for k,v in dict2:
            #do something
  </code></pre>
  
  <p>When key='a', it iterates over inner loop and does some action according to the code in that loop.Suppose that it action that it selected was 'x' in dict2.
  Now when I have to iterate with key='b', I want the iteration for the inner loop to start from 'y' because 'x' was already selected.</p>