title: Python program to create and display all combinations of letters, selecting each letter from a different key in a dictionary
body: <p>I have this dictionary below:</p>
  
  <pre><code>d ={'1':['a','b'], '2':['c','d']}
  </code></pre>
  
  <p>I need to combine the values of it by using for- loop to become as below:</p>
  
  <p>The expected results:</p>
  
  <pre><code>ac                                                                                                            
  ad                                                                                                            
  bc                                                                                                            
  bd 
  </code></pre>
  
  <p>This is my poor try and I couldn't continue, How can I do it?</p>
  
  <p>My try:</p>
  
  <pre><code>dic = {'1':['a','b'], '2':['c','d']}   
  for x ,y in dic.values():
      print(x,y)
  </code></pre>
  
  <p>My output:</p>
  
  <pre><code>a b
  c d
  </code></pre>