title: delete item in a tuple in python
body: <p>I have a file in this format</p>
  
  <pre><code>[('misure', 'di', 'protezione'), ('libertà', 'di', 'espressione', 'di', 'popolo')]
  </code></pre>
  
  <p>What I want is to eliminate from the tuple the preposition (di), and return the result in the same format. So I created this function to do this</p>
  
  <pre><code>lista = myfilelist
  prep = prepositionfile
  li = ast.literal_eval(lista)
  
   for i in li:
      word = str(i)
      ll = word.split("', '")
      for w in ll:
          lll= w.strip("('')")
          if lll in prep:
              i = word.replace(lll, "")
              i.strip('')
  
       print (nonlem(li))
  </code></pre>
  
  <p>but it return the tuple in this format</p>
  
  <pre><code>[('misure', '', 'protezione'), ('libertà', '', 'espressione', '', 'popolo')]
  </code></pre>
  
  <p>The output needed is</p>
  
  <pre><code>[('misure', 'protezione'), ('libertà', 'espressione', 'popolo')] ### without ''
  </code></pre>