title: Make complex dictionary from two arrays of keys
body: <p>I have <code>df1</code> and <code>df2</code>. for each element in <code>df1</code> I want to check if it exist in <code>df2</code> and print <code>df3</code> </p>
  
  <pre><code>df1=['c_1', 'd_1', 'f_1', 'h_1', 'i_1', 'n_1', 'v_1', 'm_1']
  
  df2=[['lia', 'f_1', 'n_1', 'v_1'], ['eli', 'f_1', 'n_1', 'v_1', 'm_1']]
  </code></pre>
  
  <p>I want an output like this:</p>
  
  <pre><code>df3=[('f_1', {'lia': 1}), ('n_1', {'lia': 1}), ('v_1', {'lia': 1}),
       ('c_1', {'lia': 0}), ('d_1', {'lia': 0}), ('h_1', {'lia': 0}), 
       ('i_1', {'lia': 0}), ('m_1', {'lia': 0}), ('f_1', {'eli': 1}),
      ...]
  </code></pre>
  
  <p>I tried some iterations but it didn't work. here is my code.</p>
  
  <pre><code>def st_pl(line, df1):    
   ln=line    
   st=df1    
   l = ln[0]    
   if l:    
    dict_l = {l: 1}    
   if not l:    
    dict_l = {l: 0}    
    li_st = []    
   size = len(ln)    
   for i in range(1, size):    
    tup = (ln[i], dict_l)    
    li_st.append(tup)    
    return li_st
  </code></pre>