title: Building a dictionary from 2 given lists in python
body: <p>I want to build a script getting 2 lists (same size) from the user, <code>L1</code> and <code>L2</code>, and build a <code>dictionary</code>: each <code>object</code> from <code>L1</code> is a key, and each object from <code>L2</code> is the <code>value</code> (for same index)</p>
  
  <p>I'm trying to make a combined list first, in order to use the <code>dict()</code> function.</p>
  
  <p>here is my script. It runs, but prints nothing. I want to print just to make sure I get build the right list to apply the <code>dict()</code> function to...</p>
  
  <pre><code>    print 'enter 2 lists with same len:'
  
  L1=input('enter first list:')
  L2=input('enter second list:')
  
  if len(L1)==len(L2) and isinstance(L1,list) and isinstance(L2, list):
      D_list=[]
      D_ij=[]
      for i in L1:
          if isinstance (i,(int, str)):
              for j in L2:
                  if isinstance(j, (tuple, list)):
  
                      for i in L1:
                          for j in L2:
  
  
  
                              D_ij=[L1[i], L2[j]]
                              D_list.extend([D_ij])
  
                              print D_list
  
  else: print 'error'
  </code></pre>